options

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OAuth

OAuth returns a googlecloud.ClientFactoryOption that configures the client to use the oauth2.TokenSource provided by the given oauth.OAuthServer. This allows the Google Cloud client to obtain access tokens via an OAuth 2.0 flow managed by the OAuthServer.

func QuotaProject

func QuotaProject(projectID string) googlecloud.ClientFactoryOption

QuotaProject returns a googlecloud.ClientFactoryOption that configures the client to use the specified quota project.

func ServiceAccountKey

func ServiceAccountKey(keyPath string) googlecloud.ClientFactoryOption

ServiceAccountKey returns a googlecloud.ClientFactoryOption to use the given service account key for any projects.

func ServiceAccountKeyForProject

func ServiceAccountKeyForProject(keyPath string, projectID string) googlecloud.ClientFactoryOption

ServiceAccountKeyForProject returns a googlecloud.ClientFactoryOption to use the given service account key for a specific project.

func TokenSource

TokenSource returns a googlecloud.ClientFactoryOption to use the given oauth2.TokenSource for any projects.

func TokenSourceForProject

func TokenSourceForProject(projectID string, source oauth2.TokenSource) googlecloud.ClientFactoryOption

TokenSourceForProject returns a googlecloud.ClientFactoryOption to use the given oauth2.TokenSource for a specific project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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