Help us shape the future of Go! Take the 2026 Go Developer Survey

features

package
v0.78.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoutingTablesExperiment = "routing-tables"
	NetworkExperiment       = "network"
	IamExperiment           = "iam"
)

Variables

Functions

func AddBetaDescription

func AddBetaDescription(description string, resourceType core.ResourceType) string

func AddExperimentDescription added in v0.44.0

func AddExperimentDescription(description, experiment string, resourceType core.ResourceType) 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 string, resourceType core.ResourceType)

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, resourceName string, resourceType core.ResourceType, diags *diag.Diagnostics)

Check if an experiment is enabled.

func CheckExperimentEnabledWithoutError added in v0.57.0

func CheckExperimentEnabledWithoutError(ctx context.Context, data *core.ProviderData, experiment, resourceName string, resourceType core.ResourceType, diags *diag.Diagnostics) bool

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