Documentation
¶
Index ¶
- func CurrentCluster(kubeConfigFile string) (string, error)
- func GetCluster(id string, kubeConfigFile string, dryRun bool, client *api.Client) error
- func ListClusters(env string, inactive bool, client *api.Client) (string, error)
- func SwitchCluster(kubeConfigFile string, context string) error
- func SyncClusters(kubeConfigFile string, inactive bool, dryRun bool, overwrite bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentCluster ¶
CurrentCluster returns current context name.
func GetCluster ¶
GetCluster gets information from a new cluster and merges it into an existing kubeconfig file.
func ListClusters ¶
ListClusters retrieves clusters and returns a formatted string of clusters.
func SwitchCluster ¶
SwitchCluster switches current context to given cluster or context name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.