clustermanager

package
v2.16.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubeClientFromKubeConfig

func CreateKubeClientFromKubeConfig(kubeConfig *[]byte) (kubernetes.Interface, error)

Types

type AdminState added in v2.15.0

type AdminState string
const (
	Disable AdminState = "disable"
	Enable  AdminState = "enable"
	Offline AdminState = "offline"
	NoPool  AdminState = "no-pool"
)

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