Documentation ¶
Index ¶
Constants ¶
View Source
const ( Disable cisapiv1.AdminState = "disable" Enable cisapiv1.AdminState = "enable" Offline cisapiv1.AdminState = "offline" )
Variables ¶
This section is empty.
Functions ¶
func CreateKubeClientFromKubeConfig ¶
func CreateKubeClientFromKubeConfig(kubeConfig *[]byte) (kubernetes.Interface, error)
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
KubeClient kubernetes.Interface
}
type HAClusterConfig ¶
type HAClusterConfig struct {
ClusterConfigs map[string]ClusterConfig
}
MultiClusterConfig defines a structure for holding cluster configuration
type MultiClusterConfig ¶
type MultiClusterConfig struct { ClusterConfigs map[string]ClusterConfig HAPairClusterName string LocalClusterName string }
MultiClusterConfig defines a structure for holding cluster configuration
func NewMultiClusterConfig ¶
func NewMultiClusterConfig() *MultiClusterConfig
NewMultiClusterConfig creates a new instance of MultiClusterConfig
Click to show internal directories.
Click to hide internal directories.