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
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 ¶
type MachineConfig ¶
type MachineConfig struct {
VerifyUnits bool
}
MachineConfig defines the parameters that should be considered when creating a new cluster member.
Click to show internal directories.
Click to hide internal directories.