group

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 1 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)
}

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

Jump to

Keyboard shortcuts

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