platform

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2015 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)
	WaitForNActiveUnits(Member, int) (map[string][]util.UnitState, 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