misc

package
Version: v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GCECredFile

func GCECredFile(c common.Credential) (f *os.File, err error)

GCECredFile creates a Google Compute Engine credential file in the system temporary directory and returns the resulting *os.File. Multiple programs calling GCECredFile simultaneously will not choose the same file. The caller can use f.Name() to find the pathname of the file. It is the caller's responsibility to remove the file when no longer needed.

func GetCloudCredential

func GetCloudCredential(env []string, c common.Credential) (menv []string, f *os.File, err error)

GetCloudCredential cloud credential files and generates environment variables, This accepts string slice and common.Credential (cloud credential) interface and returns slice of environment variables generated and file handler to the credential file

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL