cluster

package
v0.0.0-...-b313670 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckName

func CheckName(namespace string) error

func ClusterConnect

func ClusterConnect(cmd commands.Command, clusterConfig ClusterConfig) error

func CreateNamespace

func CreateNamespace(cmd commands.Command, namespace string) ([]string, error)

func DeleteNamespace

func DeleteNamespace(cmd commands.Command, namespace string) error

func ListEnvironments

func ListEnvironments(cmd commands.Command) []string

func NamespaceExists

func NamespaceExists(cmd commands.Command, search string) bool

func SetContextNamespace

func SetContextNamespace(cmd commands.Command, namespace string) error

SetContextNamespace triggers a command to set kubectl context to the new namespace

Types

type ClusterConfig

type ClusterConfig struct {
	Type    string
	Name    string
	Zone    string
	Project string
}

func GetClusterConfig

func GetClusterConfig() (retValues ClusterConfig, err error)

Jump to

Keyboard shortcuts

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