features

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailableExperiments []string = []string{"iam"}

Functions

func AddBetaDescription

func AddBetaDescription(description string) string

func AddExperimentDescription added in v0.44.0

func AddExperimentDescription(description, experiment 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.

func CheckExperimentEnabled added in v0.44.0

func CheckExperimentEnabled(ctx context.Context, data *core.ProviderData, experiment, resourceType string, diags *diag.Diagnostics)

Check if an experiment is enabled.

func ValidExperiment added in v0.44.0

func ValidExperiment(experiment string, diags *diag.Diagnostics) bool

Check if an experiment is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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