Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckForObviousMisConfiguration ¶
type CheckForObviousMisConfiguration struct{}
func (*CheckForObviousMisConfiguration) Check ¶
func (c *CheckForObviousMisConfiguration) Check(config Configuration) (bool, error)
type ConfigContainsRequiredSections ¶
type ConfigContainsRequiredSections struct{}
func (*ConfigContainsRequiredSections) Check ¶
func (c *ConfigContainsRequiredSections) Check(config Configuration) (bool, error)
type Configuration ¶
type Configuration struct { Clusters []types.Cluster `json:"clusters"` Sentinels []types.Sentinel `json:"sentinels"` Consul types.Consul `json:"consul,omitempty"` HAProxy types.HAProxy `json:"HAProxy,omitempty"` }
func (Configuration) FindClusterByName ¶
func (config Configuration) FindClusterByName(name string) (*types.Cluster, error)
func (Configuration) SanityCheckConfiguration ¶
func (c Configuration) SanityCheckConfiguration(tests ...SanityCheck) (bool, []string)
type ConfigurationManager ¶
type ConfigurationManager struct {
// contains filtered or unexported fields
}
func LoadFromFile ¶
func LoadFromFile(filePath string) (*ConfigurationManager, error)
func NewConfigurationManager ¶
func NewConfigurationManager(config Configuration) *ConfigurationManager
func (*ConfigurationManager) GetCurrentConfiguration ¶
func (c *ConfigurationManager) GetCurrentConfiguration() Configuration
type GetConfigCommand ¶
type GetConfigCommand struct {
// contains filtered or unexported fields
}
type SanityCheck ¶
type SanityCheck interface {
Check(config Configuration) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.