Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKubeConfig = filepath.Join(homedir.HomeDir(), "/.kube/config")
View Source
var DefaultKudoHome = filepath.Join(homedir.HomeDir(), ".kudo")
DefaultKudoHome is the default KUDO_HOME. We put .kudo file in the same directory where k8s keeps its config files (..kube/config). The place is determined by homedir.HomeDir() method and is different from what os.UserHomeDir() returns.
View Source
var DefaultSettings = &Settings{ Namespace: "default", RequestTimeout: 0, Validate: true, }
DefaultSettings initializes the settings to its defaults
Functions ¶
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 // RequestTimeout is the timeout value (in seconds) when making API calls via the KUDO client RequestTimeout int64 // Validate KUDO installation before creating a KUDO client Validate bool }
Settings defines global variables and settings
Click to show internal directories.
Click to hide internal directories.