Documentation ¶
Index ¶
- func CreateClients(providerConfig ProviderConfig) (*common.Client, error)
- 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
- type ProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClients ¶
func CreateClients(providerConfig ProviderConfig) (*common.Client, error)
func FrameworkProvider ¶
FrameworkProvider returns a terraform-plugin-framework Provider. This is the recommended way forward for new resources.
func MakeProviderServer ¶
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"` UserAgent types.String `tfsdk:"-"` }
func (*ProviderConfig) SetDefaults ¶
func (c *ProviderConfig) SetDefaults() error
Click to show internal directories.
Click to hide internal directories.