Documentation ¶
Index ¶
- type Base
- func (b *Base) DescribeInstances(tags map[string]string, properties bool) ([]instance.Description, error)
- func (b *Base) Destroy(inst instance.ID, context instance.Context) error
- func (b *Base) Init() *Base
- func (b *Base) Label(inst instance.ID, labels map[string]string) error
- func (b *Base) Provision(spec instance.Spec) (*instance.ID, error)
- func (b *Base) Validate(req *types.Any) error
- func (b *Base) VisitChoices(visit func(selector.Choice, instance.Plugin) (bool, error)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Plugins func() discovery.Plugins Choices []selector.Choice SelectFunc func(instance.Spec, []selector.Choice, func(selector.Choice) instance.Plugin) (selector.Choice, error) PluginClientFunc func(plugin.Name) (instance.Plugin, error) }
Base is the base implementation of an instance plugin
func (*Base) DescribeInstances ¶
func (b *Base) DescribeInstances(tags map[string]string, properties bool) ([]instance.Description, error)
DescribeInstances returns descriptions of all instances matching all of the provided tags.
Click to show internal directories.
Click to hide internal directories.