config

package
v0.0.0-...-fa73266 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config parses configuration files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel        string
	Controllers     Controllers
	Kubeconfig      string
	ResyncPeriod    int64
	EtcdEndpoints   string
	EtcdDialTimeout time.Duration
}

Config stores the parsed configuration or defaults.

func NewConfig

func NewConfig() *Config

NewConfig is the constructor for Config.

func (*Config) Parse

func (c *Config) Parse(cfgPath string, cfgName string) error

Parse the configuration and store in Config. Defaults are returned if parsing fails.

type Controllers

type Controllers struct {
	UNP bool
}

Controllers holds the enabled/disabled controller types

Jump to

Keyboard shortcuts

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