config

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: MIT Imports: 12 Imported by: 0

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"`
	RouteReflector bool   `toml:"routereflector"`
	Onetime        bool   `toml:"onetime"`
	KeepStageFile  bool   `toml:"keep-stage-file"`
	TemplateConfig template.Config
	BackendsConfig backends.Config
}

A Config structure is used to configure confd.

func InitConfig

func InitConfig(ignoreFlags bool) (*Config, error)

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
}

Jump to

Keyboard shortcuts

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