Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBetaDescription ¶
func BetaResourcesEnabled ¶
func BetaResourcesEnabled(ctx context.Context, data *core.ProviderData, diags *diag.Diagnostics) bool
BetaResourcesEnabled returns whether this provider has beta functionality enabled.
In order of precedence, beta functionality can be managed by:
- Environment Variable `STACKIT_TF_ENABLE_BETA_RESOURCES` - `true` is enabled, `false` is disabled.
- Provider configuration feature flag `enable_beta` - `true` is enabled, `false` is disabled.
func CheckBetaResourcesEnabled ¶
func CheckBetaResourcesEnabled(ctx context.Context, data *core.ProviderData, diags *diag.Diagnostics, resourceName, resourceType string)
CheckBetaResourcesEnabled is a helper function to log and add a warning or error if the beta functionality is not enabled.
Should be called in the Configure method of a beta resource. Then, check for Errors in the diags using the diags.HasError() method.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.