utils

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 21

Documentation

Index

Constants

View Source
const (
	ProjectIDEnvKey = "PROJECT_ID"
)

Variables

This section is empty.

Functions

func Base64ToMap

func Base64ToMap(base64 string) (map[string]string, error)

func ClusterName added in v0.15.0

func ClusterName(clusterName string, client metadataClient.Client) (string, error)

ClusterName returns the cluster name for a particular resource.

func MapToBase64

func MapToBase64(extensions map[string]string) (string, error)

func ProjectID

func ProjectID(project string, client metadataClient.Client) (string, error)

ProjectID returns the project ID for a particular resource.

Types

This section is empty.

Directories

Path Synopsis
Package appcredentials provides utilities for the application credentials used to access GCP services.
Package appcredentials provides utilities for the application credentials used to access GCP services.
Package mainhelper provides helper functions for common boilerplate code in writing a main function such as setting up kube informers.
Package mainhelper provides helper functions for common boilerplate code in writing a main function such as setting up kube informers.

Jump to

Keyboard shortcuts

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