Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ID string `json:"id"` Name string `json:"name"` Nodes Nodes `json:"nodes"` DNS []string `json:"dns"` CASecPaths []string `json:"ca_sec_paths"` Listener ConfigListener `json:"listener"` Quorum bool `json:"quorum"` Vip Vip `json:"vip"` // contains filtered or unexported fields }
Config describes the cluster id, name and nodes The cluster name is used as the right most part of cluster dns names.
type ConfigListener ¶
type Vip ¶
type Vip struct { // Default is the default vip configuration value, must be not zero to // enable cluster vip Default string `json:"default"` // Addr is the default vip addr Addr string `json:"name"` // Netmask is the default vip netmask Netmask string `json:"netmask"` // Dev is the default vip device Dev string `json:"dev"` // Devs is a map of node names to custom vip device (when // the device for node name is not equal to default vip device) Devs map[string]string `json:"devs"` }
Vip struct describes cluster vip settings
Click to show internal directories.
Click to hide internal directories.