gke

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gke provides a datagatherer for GKE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Project string
	// Zone is deprecated, since now Location works for both Zones and regions
	Zone     string
	Name     string
	Location string
}

Cluster holds details about the cluster required to query it using the API.

type GKEDataGatherer added in v0.1.9

type GKEDataGatherer struct {
	// contains filtered or unexported fields
}

GKEDataGatherer is a DataGatherer for GKE.

func NewGKEDataGatherer added in v0.1.9

func NewGKEDataGatherer(ctx context.Context, cluster *Cluster, credsPath string) *GKEDataGatherer

NewGKEDataGatherer creates a new GKEDataGatherer for a cluster.

func (*GKEDataGatherer) Fetch added in v0.1.9

func (g *GKEDataGatherer) Fetch() (interface{}, error)

Fetch retrieves cluster information from GKE.

type GKEInfo added in v0.1.9

type GKEInfo struct {
	Cluster *container.Cluster
}

GKEInfo contains the data retrieved from GKE.

Jump to

Keyboard shortcuts

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