Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodConfig ¶
type PodConfig struct {
Name string
MasterIP string
MasterPort string
Authpass string
KnownSentinels []string
KnownSlaves []string
Settings map[string]string
Quorum string
BadDirectives [][]string
}
PodConfig represents te configuration of a pod based on Sentinel.
func (*PodConfig) GetSentinels ¶
GetSentinels() returns the list of known sentinels
func (*PodConfig) ValidateMaster ¶
ValidateMaster() connexts to the master listed in the config and verifies it has the role of master
type SentinelConfig ¶
type SentinelConfig struct {
Name string
Host string
Port int
ManagedPodConfigs map[string]PodConfig
Dir string
KnownSentinels []string
BadDirectives []string
}
LocalSentinelConfig is a struct holding information about the sentinel RS is running on.
func ParseSentinelConfig ¶
func ParseSentinelConfig(filename string) (SentinelConfig, error)
Click to show internal directories.
Click to hide internal directories.