Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = NewConfig()
Functions ¶
func NewOrLogFatal ¶
NewOrLogFatal calls New and panics on error deprecated: Prefer New and handle the error
Types ¶
type Config ¶
type Config struct { // GCPAccessToken is the access_token to be passed to the TF provider (if non-empty), // allowing use of a non-default OAuth2 identity GCPAccessToken string // Scopes is the list of OAuth2 scopes to be passed to the TF provider, // allowing use of non-default OAuth2 scopes. If none are specified, then // Terraform has a default list of scopes that it will use. Scopes []string // Controls the quota project used in requests to GCP APIs for the purpose of preconditions, // quota, and billing. If false, the quota project is determined by the API and may be the project // associated with your credentials, or the resource project. If true, most resources in // the provider will explicitly supply their resource project, as described in their documentation. // Otherwise, a billing_project value must be supplied. // https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#user_project_override UserProjectOverride bool // BillingProject is the project used by the TF provider for preconditions, // quota, and billing if UserProjectOverride is set to true. If this field is empty, // but UserProjectOverride is set to true, then the TF provider uses the resource's project. // https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#billing_project BillingProject string }
Config holds additional configuration for the google TF provider
func UnitTestConfig ¶ added in v1.108.0
func UnitTestConfig() Config
Click to show internal directories.
Click to hide internal directories.