Discover Packages
github.com/GoogleCloudPlatform/artifact-registry-go-tools
pkg
auth
package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Nov 20, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package auth provides ways to retrieve Google Cloud credentials.
EncodeJsonKey base64 encodes a service account JSON key file.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.