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 ClientCert() string
- func ClientKey() string
- func ConfigDir() 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 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.