planmodifiers

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolUseDefaultIfUnknown

func BoolUseDefaultIfUnknown(defaultValue bool) planmodifier.Bool

func StringSetUnknownIf added in v0.15.2

func StringSetUnknownIf(description string, shouldSetUnknown StringShouldSetUnknownFunc) planmodifier.String

StringSetUnknownIf returns a planmodifier.String that sets the plan value to Unknown when shouldSetUnknown returns true. The modifier is a no-op when either state or config is absent (create / destroy), so callers don't need to guard for those cases inside shouldSetUnknown.

func StringUseDefaultIfUnknown

func StringUseDefaultIfUnknown(defaultValue string) planmodifier.String

Types

type StringShouldSetUnknownFunc added in v0.15.2

type StringShouldSetUnknownFunc func(ctx context.Context, req planmodifier.StringRequest, resp *planmodifier.StringResponse) bool

StringShouldSetUnknownFunc is invoked by StringSetUnknownIf to determine whether the planned value should be replaced with Unknown. Implementations may append diagnostics to resp; any error diagnostics short-circuit the modifier without replacing the plan value.

Jump to

Keyboard shortcuts

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