Documentation
¶
Index ¶
- Constants
- func DefaultConfig() *structs.Config
- func DevConfig() *structs.Config
- func InitializeClients(config *structs.Config) (err error)
- func LoadConfig(path string) (*structs.Config, error)
- func LoadConfigDir(dir string) (*structs.Config, error)
- func ParseConfig(r io.Reader) (*structs.Config, error)
- func ParseConfigFile(path string) (*structs.Config, error)
Constants ¶
const ( LocalConsulAddress = "localhost:8500" LocalNomadAddress = "http://localhost:4646" )
Define default local addresses for Consul and Nomad
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
DefaultConfig returns a default configuration struct with sane defaults.
func DevConfig ¶
DevConfig returns a configuration struct with sane defaults for development and testing purposes.
func InitializeClients ¶
InitializeClients completes the setup process for the Nomad and Consul clients. Must be called after configuration merging is complete.
func LoadConfig ¶
LoadConfig loads the configuration at the given path whether the specified path is an individual file or a directory of numerous configuration files.
func LoadConfigDir ¶
LoadConfigDir loads all the configurations in the given directory in lexicographic order.
func ParseConfig ¶
ParseConfig parses the config from the given io.Reader.
Types ¶
This section is empty.