provider

package
v4.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MPL-2.0 Imports: 64 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func AppPlatformResources

func AppPlatformResources() []appplatform.NamedResource

func CreateClients

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

func DataSources

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

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"`

	OrgID   types.Int64 `tfsdk:"org_id"`
	StackID types.Int64 `tfsdk:"stack_id"`

	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"`

	FleetManagementAuth        types.String `tfsdk:"fleet_management_auth"`
	FleetManagementURL         types.String `tfsdk:"fleet_management_url"`
	FrontendO11yAPIAccessToken types.String `tfsdk:"frontend_o11y_api_access_token"`

	K6URL         types.String `tfsdk:"k6_url"`
	K6AccessToken types.String `tfsdk:"k6_access_token"`

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

func (*ProviderConfig) SetDefaults

func (c *ProviderConfig) SetDefaults() error

type TLSConfig

type TLSConfig struct {
	CAData             []byte
	CertData           []byte
	KeyData            []byte
	InsecureSkipVerify bool
}

func (TLSConfig) TLSConfig

func (t TLSConfig) TLSConfig() (*tls.Config, error)

Jump to

Keyboard shortcuts

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