Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerConfig ¶
type ControllerConfig struct { UserAgent string // UserProjectOverride provides the option to use the resource project for preconditions, quota, and billing, // instead of the project the credentials belong to; false by default UserProjectOverride bool // BillingProject is the project used by the TF provider and DCL client to determine preconditions, // quota, and billing if UserProjectOverride is set to true. If this field is empty, // but UserProjectOverride is set to true, resource project will be used. BillingProject string // HTTPClient allows us to specify the HTTP client to use with DCL. // This is particularly useful in mocks/tests. HTTPClient *http.Client // GCPTokenSource mints OAuth2 tokens to be passed with GCP API calls, // allowing use of a non-default OAuth2 identity GCPTokenSource oauth2.TokenSource }
func (*ControllerConfig) GRPCClientOptions ¶ added in v1.122.0
func (c *ControllerConfig) GRPCClientOptions() ([]option.ClientOption, error)
func (*ControllerConfig) RESTClientOptions ¶ added in v1.122.0
func (c *ControllerConfig) RESTClientOptions() ([]option.ClientOption, error)
Click to show internal directories.
Click to hide internal directories.