Documentation
¶
Index ¶
- type Plugin
- func (t *Plugin) CommitGroup(grp group.Spec, pretend bool) (string, error)
- func (t *Plugin) DescribeGroup(id group.ID) (group.Description, error)
- func (t *Plugin) DestroyGroup(id group.ID) error
- func (t *Plugin) DestroyInstances(id group.ID, instances []instance.ID) error
- func (t *Plugin) FreeGroup(id group.ID) error
- func (t *Plugin) InspectGroups() ([]group.Spec, error)
- func (t *Plugin) SetSize(id group.ID, size int) error
- func (t *Plugin) Size(id group.ID) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// DoCommitGroup implements CommitGroup
DoCommitGroup func(grp group.Spec, pretend bool) (string, error)
// DoFreeGroup implements FreeGroup
DoFreeGroup func(id group.ID) error
// DoDescribeGroup implements DescribeGroup
DoDescribeGroup func(id group.ID) (group.Description, error)
// DoDestroyGroup implements DestroyGroup
DoDestroyGroup func(id group.ID) error
// DoInspectGroups implements InspectGroups
DoInspectGroups func() ([]group.Spec, error)
// DoDestroyInstances implements DestroyInstances
DoDestroyInstances func(id group.ID, instances []instance.ID) error
// DoSize implements Size
DoSize func(id group.ID) (int, error)
// DoSetSize implements SetSize
DoSetSize func(id group.ID, size int) error
}
Plugin implements group.Plugin
func (*Plugin) CommitGroup ¶
CommitGroup commits spec for a group
func (*Plugin) DescribeGroup ¶
DescribeGroup describes members of the group
func (*Plugin) DestroyGroup ¶
DestroyGroup destroys all members of the group
func (*Plugin) DestroyInstances ¶
DestroyInstances destroys instances
func (*Plugin) InspectGroups ¶
InspectGroups returns the specs of all groups known
Click to show internal directories.
Click to hide internal directories.