cluster

package
v0.7.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(domain string) bool

ClusterExists checks to see if cluster exist in config

func GetCluster

func GetCluster(domain string) (config.Context, error)

GetCluster gets the specified context by domain name Returns the matching Context struct

func GetClusters

func GetClusters() (config.Contexts, error)

GetClusters gets all clusters currently in the config Returns a Contexts struct

func GetCurrentCluster

func GetCurrentCluster() (config.Context, error)

GetCurrentCluster gets the current cluster set in the config Is a convenience wrapp around config.GetCurrentContext() Returns full Context struct

func List

func List() error

List all available clusters a user has previously authenticated to Returns error

func SetCluster

func SetCluster(domain string) error

SetCluster creates or updates a clusters domain name Returns an error

func Switch

func Switch(domain string) error

SwitchCluster is a thin wrapper around the switch cluster receiver Returns error

Types

This section is empty.

Jump to

Keyboard shortcuts

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