config

package
v0.0.0-...-ba28bb9 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: Apache-2.0 Imports: 4 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 {
	Version             bool   `short:"V" long:"version" description:"Display version."`
	Loglevel            string `` /* 144-byte string literal not displayed */
	Manpage             bool   `short:"m" long:"manpage" description:"Output manpage."`
	JSON                bool   `short:"j" long:"json" description:"Log as JSON (to stderr)." env:"UPKICK_JSON_OUTPUT"`
	Warn                bool   `short:"w" long:"warn-only" description:"Only warn, do not kick out-of-date containers." env:"UPKICK_WARN_ONLY"`
	HostnameFromRancher bool   `` /* 132-byte string literal not displayed */

	Docker struct {
		Endpoint string `` /* 127-byte string literal not displayed */
	} `group:"Docker Options"`

	Metrics struct {
		PushgatewayURL string `short:"g" long:"gateway-url" description:"The prometheus push gateway URL to use." env:"PUSHGATEWAY_URL"`
	} `group:"Metrics Options"`
}

Config stores the handler's configuration and UI interface parameters

func LoadConfig

func LoadConfig(version string) *Config

LoadConfig loads the config from flags & environment

Jump to

Keyboard shortcuts

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