clusters

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (m Map) ClusterByName(name string) (*container.Cluster, bool)

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

func (m Map) ClusterNamesByVersion(matchingVersion string) []string

ClusterNamesByVersion returns a slice of all cluster names which match a given cluster version

func (Map) Names

func (m Map) Names() []string

Names returns all cluster names in the map. The order of the returned slice is undefined

Jump to

Keyboard shortcuts

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