Documentation
¶
Index ¶
- func AdaptiveRateLimiter(pool *ratelimit.Pool) googlecloud.ClientFactoryOption
- func GRPCConnPool(num int) googlecloud.ClientFactoryOption
- 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 AdaptiveRateLimiter ¶ added in v0.58.2
func AdaptiveRateLimiter(pool *ratelimit.Pool) googlecloud.ClientFactoryOption
AdaptiveRateLimiter returns a googlecloud.ClientFactoryOption that configures Logging clients to use adaptive rate limiting managed by the given ratelimit.Pool.
func GRPCConnPool ¶ added in v0.56.2
func GRPCConnPool(num int) googlecloud.ClientFactoryOption
GRPCConnPool returns a googlecloud.ClientFactoryOption that configures the client to use the specified gRPC connection pool size.
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.