Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Composite ¶
type Composite struct {
// Array of tenants hosting a multu-tenant cluster (multi starting from 1)
Tenants []string `json:"tenants"`
}
Composite ...
type Defaults ¶
type Defaults struct {
// GatewaySizing keeps the default node definition
GatewaySizing resources.HostDefinition `json:"gateway_sizing"`
// MasterSizing keeps the default node definition
MasterSizing resources.HostDefinition `json:"master_sizing"`
// NodeSizing keeps the default node definition
NodeSizing resources.HostDefinition `json:"node_sizing"`
// Image keeps the default Linux image to use
Image string `json:"image"`
}
Defaults ...
type Features ¶
type Features struct {
// Installed ...
Installed map[string]string `json:"installed"`
// Disabled keeps track of features normally automatically added with cluster creation,
// but explicitely disabled; if a disabled feature is added, must be removed from this property
Disabled map[string]struct{} `json:"disabled"`
}
Features ...
type Network ¶
type Network struct {
NetworkID string `json:"network_id"` // contains the ID of the network
GatewayID string `json:"gateway_id"`
GatewayIP string `json:"gateway_ip"` // contains the private IP address of the gateway
PublicIP string `json:"public_ip"` // contains the IP address to reach the cluster (== PublicIP of gateway)
CIDR string `json:"cidr"` // the network CIDR
}
Network ...
type Node ¶
type Node struct {
ID string `json:"id"` // ID of the node
Name string `json:"name"` // Name of the node
PublicIP string `json:"public_ip"` // public ip of the node
PrivateIP string `json:"private_ip"` // private ip of the node
}
Node ...
type Nodes ¶
type Nodes struct {
Masters []*Node `json:"masters"` // Masters contains the ID of the masters
PublicNodes []*Node `json:"public_nodes,omitempty"` // PublicNodes is a slice of IDs of the public cluster nodes
PrivateNodes []*Node `json:"private_nodes,omitempty"` // PrivateNodes is a slice of IDs of the private cluster nodes
MasterLastIndex int `json:"master_last_index"` // MasterLastIndex
PrivateLastIndex int `json:"private_last_index"` // PrivateLastIndex
PublicLastIndex int `json:"public_last_index"` // PublicLastIndex
}
Nodes ...
type State ¶
type State struct {
// State of the cluster
State ClusterState.Enum
// StateCollectInterval in seconds
StateCollectInterval time.Duration `json:"state_collect_interval,omitempty"`
}
State contains the bare minimum information about a cluster
Click to show internal directories.
Click to hide internal directories.