configuration

package
v0.0.0-...-a22f26f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2017 License: Apache-2.0 Imports: 10 Imported by: 12

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

type ConfigContainsRequiredSections

type ConfigContainsRequiredSections struct{}

func (*ConfigContainsRequiredSections) Check

type Configuration

type Configuration struct {
	SentinelTCPKeepAlive int              `json:"SentinelTCPKeepAlive"`
	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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL