env

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKudoHome = filepath.Join(homedir.HomeDir(), ".kudo")

DefaultKudoHome is the default KUDO_HOME.

View Source
var DefaultSettings = &Settings{
	Namespace: "default",
}

DefaultSettings initializes the settings to its defaults

Functions

This section is empty.

Types

type Settings

type Settings struct {
	// KubeConfig is the path to an explicit kubeconfig file. This overwrites the value in $KUBECONFIG
	KubeConfig string
	// Home is the local path to kudo home directory
	Home kudohome.Home
	// Namespace used when working with Kubernetes
	Namespace string
}

Settings defines global variables and settings

func (*Settings) AddFlags

func (s *Settings) AddFlags(fs *pflag.FlagSet)

AddFlags binds flags to the given flagset.

func (*Settings) Init

func (s *Settings) Init(f *pflag.FlagSet)

Init sets values from the environment.

Jump to

Keyboard shortcuts

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