customtypes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUIDType

type UUIDType struct {
	basetypes.StringType
}

func (UUIDType) Equal

func (t UUIDType) Equal(o attr.Type) bool

func (UUIDType) String

func (t UUIDType) String() string

func (UUIDType) Validate

func (t UUIDType) Validate(ctx context.Context, value tftypes.Value, valuePath path.Path) diag.Diagnostics

Validate checks that the value is a valid UUID, if it is known and not null.

func (UUIDType) ValueFromTerraform

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

func (UUIDType) ValueType

func (t UUIDType) ValueType(context.Context) attr.Value

type UUIDValue

type UUIDValue struct {
	basetypes.StringValue
}

UUIDValue is a custom value used to validate that a string is a UUID.

func NewUUIDValue

func NewUUIDValue(value uuid.UUID) UUIDValue

func (UUIDValue) Equal

func (v UUIDValue) Equal(o attr.Value) bool

func (UUIDValue) StringSemanticEquals

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

func (UUIDValue) Type

func (v UUIDValue) Type(context.Context) attr.Type

func (UUIDValue) ValueUUID

func (v UUIDValue) ValueUUID() uuid.UUID

Jump to

Keyboard shortcuts

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