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 DeleteClustersParams
- type PullRequest
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 Cluster ¶
type Cluster struct { Name string `json:"name"` Status string `json:"status"` PullRequest PullRequest `json:"pullRequest"` }
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.
type DeleteClustersParams ¶
type PullRequest ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.