gke

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gke contains utilities for authenticating to GKE clusters.

Index

Constants

This section is empty.

Variables

View Source
var DefaultScopes []string = []string{
	"https://www.googleapis.com/auth/cloud-platform",
	"https://www.googleapis.com/auth/userinfo.email",
}

DefaultScopes for GKE authentication.

Functions

func WrapRESTConfig

func WrapRESTConfig(ctx context.Context, rc *rest.Config, credentials []byte, scopes ...string) error

WrapRESTConfig configures the supplied REST config to use OAuth2 bearer tokens fetched using the supplied Google Application Credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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