auth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package auth provides ways to retrieve Google Cloud credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeJsonKey

func EncodeJsonKey(keyPath string) (string, error)

EncodeJsonKey base64 encodes a service account JSON key file.

func Token

func Token(ctx context.Context) (string, error)

Token returns oauth2 access token from the environment. It looks for Application Default Credentials first and if not found, the credentials of the user logged into gcloud.

Types

This section is empty.

Jump to

Keyboard shortcuts

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