gke

package
v0.1.15-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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