platform

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNClusterMembers added in v0.3.0

func CreateNClusterMembers(cl Cluster, count int, cfg MachineConfig) error

Types

type Cluster

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

	// client operations
	Fleetctl(args ...string) (string, string, error)
	FleetctlWithInput(input string, args ...string) (string, string, error)
	WaitForNActiveUnits(count int) (map[string]util.UnitState, error)
	WaitForNMachines(count int) ([]string, error)
}

func NewNspawnCluster

func NewNspawnCluster(name string) (Cluster, error)

type MachineConfig

type MachineConfig struct {
	VerifyUnits bool
}

MachineConfig defines the parameters that should be considered when creating a new cluster member.

Jump to

Keyboard shortcuts

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