auth

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpClientFromFile

func HttpClientFromFile(ctx context.Context, credsFile string) (*http.Client, error)

HttpClientFromFile returns an http client which is configured to use the service account credentials from credsFile.

func HttpClientWithDefaultCredentials

func HttpClientWithDefaultCredentials(ctx context.Context) (*http.Client, error)

HttpClientWithDefaultCredentials returns an http client which will use the gcloud credentials of the currently logged in user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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