clustermanager

package
v3.0.0-...-4088633 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL