Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a map from cluster name to GKE cluster
func ParseMapFromGKE ¶
func ParseMapFromGKE(clusterLister gke.ClusterLister, projID, zone string) (*Map, error)
ParseMapFromGKE calls the GKE API to get a list of clusters, then returns a Map representation of those clusters. Returns nil and an appropriate error if any errors occurred along the way
func (Map) ClusterByName ¶
ClusterByName returns the cluster of the given cluster name. Returns nil and false if no cluster with the given name exists, non-nil and true otherwise
func (Map) ClusterNamesByVersion ¶
ClusterNamesByVersion returns a slice of all cluster names which match a given cluster version
Click to show internal directories.
Click to hide internal directories.