tfprovider

package
v1.118.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = NewConfig()

Functions

func New

func New(ctx context.Context, config Config) (*tfschema.Provider, error)

New builds a new tfschema.Provider for the google provider.

func NewOrLogFatal

func NewOrLogFatal(config Config) *tfschema.Provider

NewOrLogFatal calls New and panics on error deprecated: Prefer New and handle the error

func NewOrLogFatalWithContext added in v1.112.0

func NewOrLogFatalWithContext(ctx context.Context, config Config) *tfschema.Provider

NewOrLogFatalWithContext Calls New with non-empty context

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 NewConfig

func NewConfig() Config

func UnitTestConfig added in v1.108.0

func UnitTestConfig() Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL