compute

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterNameLabelKey = "goog-k8s-cluster-name"
)

Functions

This section is empty.

Types

type Client

type Client interface {
	// ListInstancesBelongingToKubernetesCluster returns a map of all instances (key) and their corresponding Kubernetes cluster (value)
	ListInstancesBelongingToKubernetesCluster(ctx context.Context) (map[string]string, error)
}

func NewClient

func NewClient(ctx context.Context, input NewClientInput) (Client, error)

type NewClientInput

type NewClientInput struct {
	Logger    *zap.SugaredLogger
	ProjectID string
}

NewClientInput defines all required fields to create a Client

Jump to

Keyboard shortcuts

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