Files
linuxkit/vendor/github.com/docker/infrakit/pkg/spi/metadata/spi.go
Rolf Neugebauer 6a29d153f5 infrakit: Move the hyperkit instance plugin into the source directory
- 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>
2017-03-25 13:02:45 +01:00

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)
}