mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-07 15:19:29 +00:00
- The tools directory ideally should not contain source code - Removes double vendoring of packagages - Makes it easer to hook the build into the top-level Makefile Eventually, the plugin should be moved to the infrakit repo. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
23 lines
568 B
Go
23 lines
568 B
Go
package metadata
|
|
|
|
import (
|
|
"github.com/docker/infrakit/pkg/spi"
|
|
"github.com/docker/infrakit/pkg/types"
|
|
)
|
|
|
|
// InterfaceSpec is the current name and version of the Metadata API.
|
|
var InterfaceSpec = spi.InterfaceSpec{
|
|
Name: "Metadata",
|
|
Version: "0.1.0",
|
|
}
|
|
|
|
// Plugin is the interface for metadata-related operations.
|
|
type Plugin interface {
|
|
|
|
// List returns a list of *child nodes* given a path, which is specified as a slice
|
|
List(path Path) (child []string, err error)
|
|
|
|
// Get retrieves the value at path given.
|
|
Get(path Path) (value *types.Any, err error)
|
|
}
|