multicluster

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(json string, scheme *runtime.Scheme, object runtime.Object) error

Decode json into runtime.Object, which is a pointer (such as &corev1.ConfigMapList)

Types

type Cluster

type Cluster struct {
	Name     string          `json:"name"`
	Metadata ClusterMetadata `json:"metadata"`
}

func CreateCluster added in v0.6.0

func CreateCluster(cm corev1.ConfigMap) Cluster

type ClusterLister

type ClusterLister interface {
	GetClusters() ([]Cluster, error)
}

type ClusterManager

type ClusterManager interface {
	ClusterLister
	GetBlueprint(cluster string, namespace string, name string) (*v1alpha1.Blueprint, error)
	CreateBlueprint(cluster string, blueprint *v1alpha1.Blueprint) error
	UpdateBlueprint(cluster string, blueprint *v1alpha1.Blueprint) error
	DeleteBlueprint(cluster string, namespace string, name string) error
}

type ClusterMetadata

type ClusterMetadata struct {
	Region        string `json:"region"`
	Zone          string `json:"zone,omitempty"`
	VaultAuthPath string `json:"vaultAuthPath,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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