Documentation
¶
Index ¶
- func OAuth(server *oauth.OAuthServer) googlecloud.ClientFactoryOption
- func QuotaProject(projectID string) googlecloud.ClientFactoryOption
- func ServiceAccountKey(keyPath string) googlecloud.ClientFactoryOption
- func ServiceAccountKeyForProject(keyPath string, projectID string) googlecloud.ClientFactoryOption
- func TokenSource(source oauth2.TokenSource) googlecloud.ClientFactoryOption
- func TokenSourceForProject(projectID string, source oauth2.TokenSource) googlecloud.ClientFactoryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OAuth ¶
func OAuth(server *oauth.OAuthServer) googlecloud.ClientFactoryOption
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 ¶
func TokenSource(source oauth2.TokenSource) googlecloud.ClientFactoryOption
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.