platform

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	CreateMember() (Member, error)
	DestroyMember(Member) error
	ReplaceMember(Member) (Member, error)
	Members() []Member
	MemberCommand(Member, ...string) (string, error)
	Destroy() error

	// client operations
	Fleetctl(m Member, args ...string) (string, string, error)
	FleetctlWithInput(m Member, input string, args ...string) (string, string, error)
	WaitForNUnits(Member, int) (map[string][]util.UnitState, error)
	WaitForNActiveUnits(Member, int) (map[string][]util.UnitState, error)
	WaitForNUnitFiles(Member, int) (map[string][]util.UnitFileState, error)
	WaitForNMachines(Member, int) ([]string, error)
}

func NewNspawnCluster

func NewNspawnCluster(name string) (Cluster, error)

type Member added in v0.9.0

type Member interface {
	ID() string
	IP() string
	Endpoint() string
}

func CreateNClusterMembers added in v0.3.0

func CreateNClusterMembers(cl Cluster, count int) ([]Member, error)

Jump to

Keyboard shortcuts

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