options

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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