Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInitDefaults ¶
func SetInitDefaults(config *InitConfiguration)
SetInitDefaults sets defaults on the configuration used by init
func SetInitDynamicDefaults ¶
func SetInitDynamicDefaults(config *InitConfiguration) error
SetInitDynamicDefaults sets defaults derived at runtime
func ValidateInit ¶
func ValidateInit(config *InitConfiguration) []error
ValidateInit validates the configuration used by the init verb
func ValidateJoin ¶ added in v0.2.0
func ValidateJoin(config *JoinConfiguration) []error
ValidateJoin validates the configuration used by the join verb
Types ¶
type InitConfiguration ¶
type InitConfiguration struct { MasterConfiguration map[string]interface{} `json:"masterConfiguration,omitempty"` VIPConfiguration *VIPConfiguration `json:"vipConfiguration,omitempty"` }
InitConfiguration specifies the configuration used by the init command
type JoinConfiguration ¶
type JoinConfiguration struct {
NodeConfiguration map[string]interface{} `json:"nodeConfiguration,omitempty"`
}
JoinConfiguration specifies the configuration used by the join command
type VIPConfiguration ¶
type VIPConfiguration struct { // The virtual IP. IP string `json:"ip"` // The virtual router ID. Must be in the range [0, 254]. Must be unique within // a single L2 network domain. RouterID int `json:"routerID"` // Network interface chosen to create the virtual IP. If it is not specified, // the interface of the default gateway is chosen. NetworkInterface string `json:"networkInterface,omitempty"` }
VIPConfiguration specifies the parameters used to provision a virtual IP which API servers advertise and accept requests on.
Click to show internal directories.
Click to hide internal directories.