features

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBetaDescription

func AddBetaDescription(description string) string

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.

Jump to

Keyboard shortcuts

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