config

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 3, 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 {
	CniPluginDir      string   `json:"cni_plugin_dir"`
	CniConfigDir      string   `json:"cni_config_dir"`
	BindMountDir      string   `json:"bind_mount_dir"`
	StateFilePath     string   `json:"state_file"`
	StartPort         int      `json:"start_port"`
	TotalPorts        int      `json:"total_ports"`
	LogPrefix         string   `json:"log_prefix"`
	SearchDomains     []string `json:"search_domains"`
	IPTablesLockFile  string   `json:"iptables_lock_file"`
	ProxyRedirectCIDR string   `json:"proxy_redirect_cidr"`
	ProxyPort         int      `json:"proxy_port"`
	ProxyUID          *int     `json:"proxy_uid"`
}

func New

func New(configFilePath string) (Config, error)

Jump to

Keyboard shortcuts

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