schemafunc

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyUnknowns added in v1.26.1

func CopyUnknowns(ctx context.Context, src, dest any, keepUnknown []string)

CopyUnknowns use reflection to copy unknown fields from src to dest. The implementation is similar to internal/common/conversion/model_generation.go#CopyModel keepUnknown is a list of fields that should not be copied, should always use the TF config name (snake_case) nestedStructMapping is a map of field names to their type: object, list. (`set` not implemented yet)

func EqualJSON

func EqualJSON(old, newStr, errContext string) bool

func HasUnknowns added in v1.26.1

func HasUnknowns(obj any) bool

HasUnknowns uses reflection to check if the object has any unknown fields Pass &TFModel{} Will only check the root level attributes

Types

type UpdateOnlyString added in v1.22.0

type UpdateOnlyString struct{}

func PlanModifyStringUpdateOnly added in v1.22.0

func PlanModifyStringUpdateOnly() UpdateOnlyString

func (UpdateOnlyString) Description added in v1.22.0

func (u UpdateOnlyString) Description(ctx context.Context) string

func (UpdateOnlyString) MarkdownDescription added in v1.22.0

func (u UpdateOnlyString) MarkdownDescription(ctx context.Context) string

func (UpdateOnlyString) PlanModifyString added in v1.22.0

Jump to

Keyboard shortcuts

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