multicluster

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 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)
	IsMultiClusterSetup() bool
}

type ClusterManager

type ClusterManager interface {
	ClusterLister
	GetBlueprint(cluster string, namespace string, name string) (*app.Blueprint, error)
	CreateBlueprint(cluster string, blueprint *app.Blueprint) error
	UpdateBlueprint(cluster string, blueprint *app.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