clustermanage

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProvider added in v1.3.1

func RegisterProvider(factory ProviderFactory)

Types

type CloudProvider

type CloudProvider interface {
	Sync(ctx context.Context) error
	Cleanup(tx context.Context) error
	Expansion
}

func GetProvider added in v1.3.1

func GetProvider(operator Operator, cp v1.CloudProvider) (CloudProvider, error)

type Expansion

type Expansion interface {
	PreCheck(ctx context.Context) (bool, error)
	GetKubeConfig(ctx context.Context, clusterName string) (string, error)
	GetCertification(ctx context.Context, clusterName string) ([]v1.Certification, error)
}

type Operator added in v1.3.1

type Operator struct {
	ClusterReader cluster.ClusterReader
	ClusterLister listerv1.ClusterLister
	ClusterWriter cluster.ClusterWriter

	CloudProviderLister listerv1.CloudProviderLister
	CloudProviderWriter cluster.CloudProviderWriter
	CloudProviderReader cluster.CloudProviderReader

	NodeLister listerv1.NodeLister
	NodeWriter cluster.NodeWriter

	ConfigmapLister listerv1.ConfigMapLister
	ConfigmapWriter core.ConfigMapWriter
}

type ProviderFactory added in v1.3.1

type ProviderFactory interface {
	ClusterType() string
	InitCloudProvider(operator Operator, provider v1.CloudProvider) (CloudProvider, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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