Documentation ¶
Index ¶
- func DeleteClusters(params DeleteClustersParams, r ClustersRetriever, w io.Writer) error
- func GetClusterByName(name string, r ClustersRetriever, w io.Writer) error
- func GetClusterKubeconfig(name string, r ClustersRetriever, w io.Writer) error
- func GetClusters(r ClustersRetriever, w io.Writer) error
- type Cluster
- type ClustersRetriever
- type Condition
- type DeleteClustersParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteClusters ¶
func DeleteClusters(params DeleteClustersParams, r ClustersRetriever, w io.Writer) error
func GetClusterByName ¶
func GetClusterByName(name string, r ClustersRetriever, w io.Writer) error
GetClusterByName uses a ClustersRetriever adapter to show a cluster to the console given its name.
func GetClusterKubeconfig ¶
func GetClusterKubeconfig(name string, r ClustersRetriever, w io.Writer) error
func GetClusters ¶
func GetClusters(r ClustersRetriever, w io.Writer) error
GetClusters uses a ClustersRetriever adapter to show a list of clusters to the console.
Types ¶
type ClustersRetriever ¶
type ClustersRetriever interface { Source() string RetrieveClusters() ([]Cluster, error) GetClusterKubeconfig(string) (string, error) DeleteClusters(DeleteClustersParams) (string, error) }
ClustersRetriever defines the interface that adapters need to implement in order to return an array of clusters.
Click to show internal directories.
Click to hide internal directories.