datasources

package
v0.1.0-alpha.30 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStatus

type ClusterStatus struct {
	// The target cluster name
	ClusterName string
	// Tells if the cluster exists
	Exists bool
	// Tells if the cluster is valid
	IsValid bool
	// Tells if the cluster needs a rolling update
	NeedsUpdate bool
}

ClusterStatus reports status of a cluster

func GetClusterStatus

func GetClusterStatus(name string, clientset simple.Clientset) (*ClusterStatus, error)

type KubeConfig

type KubeConfig struct {
	// The cluster name
	ClusterName string
	kube.Config
}

KubeConfig represents the kubernets configuration needed to access a cluster

func GetConfig

func GetConfig(name string, clientset simple.Clientset) (*KubeConfig, error)

Jump to

Keyboard shortcuts

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