customtypes

package
v0.1.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLTypeErrorInvalidStringHeader  = "Invalid absolute URL String Value"
	URLTypeErrorInvalidStringDetails = "A string value was provided that is not valid absolute URL string format.\n\nGiven Value: %s\nError: %s"
)
View Source
const (
	UUIDTypeErrorInvalidStringHeader  = "Invalid UUID String Value"
	UUIDTypeErrorInvalidStringDetails = "A string value was provided that is not valid UUID string format.\n\nGiven Value: %s\nError: %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL = URLValue

func NewURLNull

func NewURLNull() URL

func NewURLPointerValue

func NewURLPointerValue(value *string) URL

func NewURLPointerValueMust

func NewURLPointerValueMust(value *string) (URL, diag.Diagnostics)

func NewURLUnknown

func NewURLUnknown() URL

func NewURLValue

func NewURLValue(value string) URL

func NewURLValueMust

func NewURLValueMust(value string) (URL, diag.Diagnostics)

type URLType

type URLType struct {
	basetypes.StringType
}

func (URLType) Equal

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

func (URLType) String

func (t URLType) String() string

func (URLType) ValueFromTerraform

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

func (URLType) ValueType

func (t URLType) ValueType(_ context.Context) attr.Value

type URLValue

type URLValue struct {
	basetypes.StringValue
}

func (URLValue) Equal

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

func (URLValue) StringSemanticEquals

func (v URLValue) StringSemanticEquals(_ context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)

func (URLValue) Type

func (v URLValue) Type(_ context.Context) attr.Type

func (URLValue) ValidateAttribute

func (URLValue) ValueURL

func (v URLValue) ValueURL() (string, diag.Diagnostics)

type UUID

type UUID = UUIDValue

func NewUUIDNull

func NewUUIDNull() UUID

func NewUUIDPointerValue

func NewUUIDPointerValue(value *string) UUID

func NewUUIDPointerValueMust

func NewUUIDPointerValueMust(value *string) (UUID, diag.Diagnostics)

func NewUUIDUnknown

func NewUUIDUnknown() UUID

func NewUUIDValue

func NewUUIDValue(value string) UUID

func NewUUIDValueMust

func NewUUIDValueMust(value string) (UUID, diag.Diagnostics)

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) 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
}

func (UUIDValue) Equal

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

func (UUIDValue) StringSemanticEquals

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

func (UUIDValue) Type

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

func (UUIDValue) ValidateAttribute

func (UUIDValue) ValueUUID

func (v UUIDValue) ValueUUID() (string, diag.Diagnostics)

Jump to

Keyboard shortcuts

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