Documentation ¶
Index ¶
- Variables
- func CreateClients(providerConfig ProviderConfig) (*common.Client, error)
- func DataSources() []*common.DataSource
- func FrameworkProvider(version string) provider.Provider
- func MakeProviderServer(ctx context.Context, version string) (tfprotov5.ProviderServer, error)
- func Provider(version string) *schema.Provider
- func Resources() []*common.Resource
- func ResourcesMap() map[string]*common.Resource
- type ProviderConfig
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 ¶
FrameworkProvider returns a terraform-plugin-framework Provider. This is the recommended way forward for new resources.
func MakeProviderServer ¶
func 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 ResourcesMap ¶ added in v3.8.0
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
Click to show internal directories.
Click to hide internal directories.