config

package
v0.0.0-...-d3eceb9 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKubeConfigLocation = "/.kube/config"

DefaultKubeConfigLocation is the default location of the KubeConfig file.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// AuthType defines if Trireme uses PSK or PKI
	AuthType string
	// KubeNodeName is the identifier used for this Trireme instance
	KubeNodeName string
	// PKIDirectory is the directory where the Key files are stored (is using PKI)
	PKIDirectory string
	// TriremePSK is the PSK used for Trireme (if using PSK)
	TriremePSK string
	// RemoteEnforcer defines if the enforcer is spawned into each POD namespace
	// or into the host default namespace.
	RemoteEnforcer bool

	TriremeNetworks       string
	ParsedTriremeNetworks []string

	KubeconfigPath string
	LogLevel       string

	// Enforce defines if this process is an enforcer process (spawned into POD namespaces)
	Enforce bool `mapstructure:"Enforce"`
}

Configuration contains all the User Parameter for Trireme-Kubernetes.

func LoadConfig

func LoadConfig() (*Configuration, error)

LoadConfig loads a Configuration struct: 1) If presents flags are used 2) If no flags, Env Variables are used 3) If no Env Variables, defaults are used when possible.

Jump to

Keyboard shortcuts

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