modifier

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseDefaultModifier

func UseDefaultModifier(value attr.Value) tfsdk.AttributePlanModifier

UseDefaultModifier returns a new DefaultModifier

Types

type DefaultModifier

type DefaultModifier struct {
	tfsdk.AttributePlanModifier
	// contains filtered or unexported fields
}

DefaultModifier ensures a new value with null value will always be set to default

func (DefaultModifier) Description

func (r DefaultModifier) Description(ctx context.Context) string

Description returns a human-readable description of the plan modifier.

func (DefaultModifier) MarkdownDescription

func (r DefaultModifier) MarkdownDescription(ctx context.Context) string

MarkdownDescription returns a markdown description of the plan modifier.

func (DefaultModifier) Modify

Modify sets the default value if not known or empty

Jump to

Keyboard shortcuts

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