lib

package
v0.1.963 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIToDynamicSiblingDiscriminator added in v0.1.936

func APIToDynamicSiblingDiscriminator(ctx context.Context, attributePath path.Path, source any, selector string, variants []JSONSchemaVariant, prior types.Dynamic) (types.Dynamic, diag.Diagnostics)

func AtLeastOneOfAttributes added in v0.1.867

func AtLeastOneOfAttributes(names ...string) validator.Object

func AttributeToInterface

func AttributeToInterface(ctx context.Context, path path.Path, source attr.Value) (dest interface{}, diags diag.Diagnostics)

func DeprecatedSiblingDiscriminatorValue added in v0.1.936

func DeprecatedSiblingDiscriminatorValue(rule, selector string, variants []JSONSchemaVariant, warning string) validator.Dynamic

func DynamicSiblingDiscriminatorToAPI added in v0.1.936

func DynamicSiblingDiscriminatorToAPI(ctx context.Context, attributePath path.Path, source types.Dynamic, selector string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

func DynamicSiblingDiscriminatorUpdateToAPI added in v0.1.936

func DynamicSiblingDiscriminatorUpdateToAPI(ctx context.Context, attributePath path.Path, source types.Dynamic, prior types.Dynamic, selector string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

func DynamicToInterface added in v0.1.391

func DynamicToInterface(ctx context.Context, path path.Path, source types.Dynamic) (interface{}, diag.Diagnostics)

func DynamicToStringMap

func DynamicToStringMap(ctx context.Context, path path.Path, source types.Dynamic) (map[string]interface{}, diag.Diagnostics)

func DynamicToStringMapSlice

func DynamicToStringMapSlice(ctx context.Context, path path.Path, source types.Dynamic) ([]map[string]interface{}, diag.Diagnostics)

func ElementsToInterfaces added in v0.1.867

func ElementsToInterfaces(ctx context.Context, path path.Path, elements []attr.Value) (dest []interface{}, diags diag.Diagnostics)

func ElementsToStringMap

func ElementsToStringMap(ctx context.Context, path path.Path, attrs map[string]attr.Value) (dest map[string]interface{}, diags diag.Diagnostics)

func ExactlyOneOfAttributes added in v0.1.867

func ExactlyOneOfAttributes(names ...string) validator.Object

func GroupStructuralUnionAtPath added in v0.1.867

func GroupStructuralUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

func ListToStringMapSlice

func ListToStringMapSlice(ctx context.Context, path path.Path, elements []attr.Value) (dest []map[string]interface{}, diags diag.Diagnostics)

func ListValueToString

func ListValueToString(ctx context.Context, path path.Path, list types.List, delim string) (string, diag.Diagnostics)

func SchemaAttributeToInterface added in v0.1.867

func SchemaAttributeToInterface(ctx context.Context, path path.Path, source attr.Value) (dest interface{}, diags diag.Diagnostics)

func TimeToStringType

func TimeToStringType(ctx context.Context, path path.Path, source *time.Time, dest *types.String) error

func ToDynamic

func ToDynamic(ctx context.Context, path path.Path, source any, plan attr.Value) (dest types.Dynamic, diags diag.Diagnostics)

func ToList added in v0.1.867

func ToList(ctx context.Context, path path.Path, source any, plan types.List) (types.List, diag.Diagnostics)

func ToMap added in v0.1.867

func ToMap(ctx context.Context, path path.Path, source any, plan types.Map) (types.Map, diag.Diagnostics)

func ToObject added in v0.1.867

func ToObject(ctx context.Context, path path.Path, source any, plan types.Object) (types.Object, diag.Diagnostics)

func UngroupStructuralUnionAtPath added in v0.1.867

func UngroupStructuralUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

func UnwrapDiscriminatedUnionAtPath added in v0.1.867

func UnwrapDiscriminatedUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, discriminator string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

func UnwrapSiblingDiscriminator added in v0.1.936

func UnwrapSiblingDiscriminator(_ context.Context, attributePath path.Path, source any, discriminator string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

func WrapDiscriminatedUnionAtPath added in v0.1.867

func WrapDiscriminatedUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, discriminator string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

func WrapSiblingDiscriminator added in v0.1.936

func WrapSiblingDiscriminator(_ context.Context, attributePath path.Path, source any, discriminator string, variants []JSONSchemaVariant) (any, diag.Diagnostics)

Types

type JSONSchemaVariant added in v0.1.867

type JSONSchemaVariant struct {
	Name           string
	Value          string
	RootType       string
	Required       []string
	Allowed        []string
	Writable       []string
	WriteOnly      []string
	LegacyProperty string
	LegacyList     bool
}

type Logger

type Logger struct {
	Ctx context.Context
}

func (Logger) Debug

func (l Logger) Debug(msg string, args ...interface{})

func (Logger) Error

func (l Logger) Error(msg string, args ...interface{})

func (Logger) Info

func (l Logger) Info(msg string, args ...interface{})

func (Logger) Printf

func (l Logger) Printf(msg string, args ...interface{})

func (Logger) Warn

func (l Logger) Warn(msg string, args ...interface{})

type SortedElementString added in v0.1.184

type SortedElementString struct {
	basetypes.StringValue
}

func SortedElementStringValue added in v0.1.184

func SortedElementStringValue(value string) SortedElementString

func (SortedElementString) StringSemanticEquals added in v0.1.184

func (v SortedElementString) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)

func (SortedElementString) Type added in v0.1.184

type SortedElementStringType added in v0.1.184

type SortedElementStringType struct {
	basetypes.StringType
}

func (SortedElementStringType) Equal added in v0.1.184

func (SortedElementStringType) String added in v0.1.184

func (t SortedElementStringType) String() string

func (SortedElementStringType) ValueFromString added in v0.1.184

func (SortedElementStringType) ValueFromTerraform added in v0.1.184

func (t SortedElementStringType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (SortedElementStringType) ValueType added in v0.1.184

Jump to

Keyboard shortcuts

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