config

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, MIT Imports: 7 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"`
	Onetime        bool   `toml:"onetime"`
	KeepStageFile  bool   `toml:"keep-stage-file"`
	Typha          syncclientutils.TyphaConfig
	TemplateConfig template.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