platform

package
v0.0.0-...-5a8f579 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2014 License: Apache-2.0 Imports: 14 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

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

func CreateNClusterMembers

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