utils

package
v0.0.0-...-d19fc40 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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

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