Documentation ¶
Overview ¶
Copyright (c) 2013 Kelsey Hightower. All rights reserved. Use of this source code is governed by the Apache License, Version 2.0 that can be found in the LICENSE file.
Copyright (c) 2013 Kelsey Hightower. All rights reserved. Use of this source code is governed by the Apache License, Version 2.0 that can be found in the LICENSE file.
Copyright (c) 2013 Kelsey Hightower. All rights reserved. Use of this source code is governed by the Apache License, Version 2.0 that can be found in the LICENSE file.
Index ¶
- func Backend() string
- func ClientCaKeys() string
- func ClientCert() string
- func ClientKey() string
- func ConfDir() string
- func ConfigDir() string
- func Consul() bool
- func ConsulAddr() string
- func Debug() bool
- func EtcdNodes() []string
- func Interval() int
- func LoadConfig(path string) error
- func Noop() bool
- func Prefix() string
- func Quiet() bool
- func SRVDomain() string
- func SetConfDir(path string)
- func SetNoop(enabled bool)
- func SetPrefix(prefix string)
- func TemplateDir() string
- func Verbose() bool
- type Config
- type Nodes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCaKeys ¶ added in v0.3.0
func ClientCaKeys() string
ClientCaKeys returns the client CA certificates
func ConsulAddr ¶ added in v0.4.0
func ConsulAddr() string
ConsulAddr returns the address of the consul node
func EtcdNodes ¶
func EtcdNodes() []string
EtcdNodes returns a list of etcd node url strings. For example: ["http://203.0.113.30:4001"]
func Interval ¶
func Interval() int
Interval returns the number of seconds to wait between configuration runs.
func LoadConfig ¶
LoadConfig initializes the confd configuration by first setting defaults, then overriding setting from the confd config file, and finally overriding settings from flags set on the command line. It returns an error if any.
Types ¶
type Config ¶
type Config struct {
Confd confd
}
Config represents the confd configuration settings.