Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Default = Config{ WatchDirs: []ConfigDir{ { Dir: "$HOME/Downloads", FileSuffix: ".kubeconfig.txt", FileFormat: "cluster-bot-2006-01-02-150405.kubeconfig.txt", Lifespan: 150, }, }, KubeconfigLink: "$HOME/.kcm-active", } )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type ConfigDir ¶
type ConfigDir struct { // The directory to search in for kubeconfig files. (will substitute $HOME to the users home directory) Dir string // The full extension (.kubeconfig.txt) of the files you're looking for. FileSuffix string // A time.Parse version of the filename you're expecting; is used with Lifespan to show whether a kubeconfig is expired or not. FileFormat string // Number of minutes until this cluster expires (0 is never expire). Lifespan uint }
Click to show internal directories.
Click to hide internal directories.