group

package
v0.0.0-...-a355528 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

func (t *Plugin) CommitGroup(grp group.Spec, pretend bool) (string, error)

CommitGroup commits spec for a group

func (*Plugin) DescribeGroup

func (t *Plugin) DescribeGroup(id group.ID) (group.Description, error)

DescribeGroup describes members of the group

func (*Plugin) DestroyGroup

func (t *Plugin) DestroyGroup(id group.ID) error

DestroyGroup destroys all members of the group

func (*Plugin) DestroyInstances

func (t *Plugin) DestroyInstances(id group.ID, instances []instance.ID) error

DestroyInstances destroys instances

func (*Plugin) FreeGroup

func (t *Plugin) FreeGroup(id group.ID) error

FreeGroup releases the members of the group from management

func (*Plugin) InspectGroups

func (t *Plugin) InspectGroups() ([]group.Spec, error)

InspectGroups returns the specs of all groups known

func (*Plugin) SetSize

func (t *Plugin) SetSize(id group.ID, size int) error

SetSize sets the target size

func (*Plugin) Size

func (t *Plugin) Size(id group.ID) (int, error)

Size returns the target size

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL