# Functions
CopyFileContent copies file content from src to dst If file exist, it gives it new uniq name prefix.
GetBackupFilePath returns valid path to backup according to cmd flags & defaults.
GetKubeconfigPath returns valid path to kubeconfig according to cmd flags & defaults.
GetOutputFilePath returns valid path to output file according to cmd flags & defaults.
Merge merges two kubeconfigs.
PrettyPrint print current kubeconfig with colors.
ReadConf is a helper func for reading kubeconfig files.
# Constants
DefaultBackupFolder is path where backups are stored.
DefaultKubeconfigFile is default backup file name.
DefaultKubeconfigFolder is path where kubectl config is stored by default.
OptionBackup is cli flag name for setting custom backup file.
OptionKubeconfig is cli flag name for setting custom kubeconfig file.
OptionOutput is cli flag name for setting custom output file.
# Structs
Cluster represents k8s cluster section of kubectl config file.
ClusterEntry represents list of clusters in kubectl config file.
Context represents k8s context section of kubectl config file.
ContextEntry represents list of contexts in kubectl config file.
Extension represents k8s extension section of kubectl config file.
ExtensionEntry represents list of extensions in kubectl config file.
Kubeconfig represents kubectl config file.
Preferences represents k8s preferences section of kubectl config file.
User represents k8s user section of kubectl config file.
UserEntry represents list of users in kubectl config file.