Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigCmd ¶
func NewConfigCmd(impl api.CommandImplementationInterface) *cobra.Command
Types ¶
type Context ¶
type Context struct {
Name string `yaml:"name"`
Organization string `yaml:"organization,omitempty"`
Project string `yaml:"project,omitempty"`
Component string `yaml:"component,omitempty"`
Environment string `yaml:"environment,omitempty"`
DataPlane string `yaml:"dataPlane,omitempty"`
ClusterRef string `yaml:"clusterRef,omitempty"` // Reference to KubernetesCluster
}
Context represents a single named configuration context.
type KubernetesCluster ¶
type KubernetesCluster struct {
Name string `yaml:"name"`
Kubeconfig string `yaml:"kubeconfig"`
Context string `yaml:"context"`
}
KubernetesCluster defines K8s cluster configuration
type StoredConfig ¶
type StoredConfig struct {
CurrentContext string `yaml:"currentContext"`
Clusters []KubernetesCluster `yaml:"clusters"`
Contexts []Context `yaml:"contexts"`
}
StoredConfig is the structure to store configuration contexts.
Click to show internal directories.
Click to hide internal directories.