k8auth

package
v0.0.0-...-3e090cd Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGKEClustersConfig

func GetGKEClustersConfig(ctx context.Context, projectID, region string) (*api.Config, rest_errors.RestErr)

GetGKEClustersConfig func collected from https://bionic.fullstory.com/connect-to-google-kubernetes-with-gcp-credentials-and-pure-golang/ it generates kubeconfig on the fly by calling gke api, then use this config to authenticate to GKE(kubernetes) resources

func GetGkekubeConfig

func GetGkekubeConfig(ctx context.Context, projectID, region, clusterName string) (*kubernetes.Clientset, rest_errors.RestErr)

func ListGKEWorkload

func ListGKEWorkload(ctx context.Context, projectID, region string) ([]v1.Namespace, rest_errors.RestErr)

Types

This section is empty.

Jump to

Keyboard shortcuts

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