Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConfDir string `toml:"confdir"` Interval int `toml:"interval"` Noop bool `toml:"noop"` Prefix string `toml:"prefix"` SyncOnly bool `toml:"sync-only"` CalicoConfig string `toml:"calicoconfig"` Onetime bool `toml:"onetime"` KeepStageFile bool `toml:"keep-stage-file"` Typha TyphaConfig TemplateConfig template.Config }
A Config structure is used to configure confd.
func InitConfig ¶
InitConfig initializes the confd configuration by first setting defaults, then overriding settings from the confd config file, then overriding settings from environment variables, and finally overriding settings from flags set on the command line. It returns an error if any.
type ConfigVisitor ¶
type ConfigVisitor struct {
// contains filtered or unexported fields
}
type TyphaConfig ¶
type TyphaConfig struct { Addr string K8sServiceName string K8sNamespace string ReadTimeout time.Duration WriteTimeout time.Duration // Client-side TLS config for confd's communication with Typha. If any of these are // specified, they _all_ must be - except that either CN or URISAN may be left unset. // confd will then initiate a secure (TLS) connection to Typha. Typha must present a // certificate signed by a CA in CAFile, and with CN matching CN or URI SAN matching // URISAN. KeyFile string CertFile string CAFile string CN string URISAN string }
Copied from <felix>/config/config_params.go.
Click to show internal directories.
Click to hide internal directories.