provider

package
v3.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MPL-2.0 Imports: 46 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnableGenerateEnvVar     = "TF_GENERATE_UNSENSITIVE"
	EnableGenerateMarkerFile = ".generate-make-all-fields-unsensitive"
)

Functions

func CreateClients

func CreateClients(providerConfig ProviderConfig) (*common.Client, error)

func DataSources added in v3.2.0

func DataSources() []*common.DataSource

func FrameworkProvider

func FrameworkProvider(version string) provider.Provider

FrameworkProvider returns a terraform-plugin-framework Provider. This is the recommended way forward for new resources.

func MakeProviderServer

func MakeProviderServer(ctx context.Context, version string) (tfprotov5.ProviderServer, error)

func Provider

func Provider(version string) *schema.Provider

Provider returns a terraform-provider-sdk2 provider. This is the deprecated way of creating a provider, and should only be used for legacy resources.

func Resources

func Resources() []*common.Resource

func ResourcesMap added in v3.8.0

func ResourcesMap() map[string]*common.Resource

Types

type ProviderConfig

type ProviderConfig struct {
	URL              types.String `tfsdk:"url"`
	Auth             types.String `tfsdk:"auth"`
	HTTPHeaders      types.Map    `tfsdk:"http_headers"`
	Retries          types.Int64  `tfsdk:"retries"`
	RetryStatusCodes types.Set    `tfsdk:"retry_status_codes"`
	RetryWait        types.Int64  `tfsdk:"retry_wait"`

	TLSKey             types.String `tfsdk:"tls_key"`
	TLSCert            types.String `tfsdk:"tls_cert"`
	CACert             types.String `tfsdk:"ca_cert"`
	InsecureSkipVerify types.Bool   `tfsdk:"insecure_skip_verify"`

	StoreDashboardSha256 types.Bool `tfsdk:"store_dashboard_sha256"`

	CloudAccessPolicyToken types.String `tfsdk:"cloud_access_policy_token"`
	CloudAPIURL            types.String `tfsdk:"cloud_api_url"`

	SMAccessToken types.String `tfsdk:"sm_access_token"`
	SMURL         types.String `tfsdk:"sm_url"`

	OncallAccessToken types.String `tfsdk:"oncall_access_token"`
	OncallURL         types.String `tfsdk:"oncall_url"`

	CloudProviderAccessToken types.String `tfsdk:"cloud_provider_access_token"`
	CloudProviderURL         types.String `tfsdk:"cloud_provider_url"`

	ConnectionsAPIAccessToken types.String `tfsdk:"connections_api_access_token"`
	ConnectionsAPIURL         types.String `tfsdk:"connections_api_url"`

	UserAgent types.String `tfsdk:"-"`
	Version   types.String `tfsdk:"-"`
}

func (*ProviderConfig) SetDefaults

func (c *ProviderConfig) SetDefaults() error

Jump to

Keyboard shortcuts

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