multicluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 3 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
	Metadata ClusterMetadata
}

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
	Zone          string
	VaultAuthPath string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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