Documentation ¶
Index ¶
- type UUIDType
- func (t UUIDType) Equal(o attr.Type) bool
- func (t UUIDType) String() string
- func (t UUIDType) Validate(ctx context.Context, value tftypes.Value, valuePath path.Path) diag.Diagnostics
- func (t UUIDType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t UUIDType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t UUIDType) ValueType(context.Context) attr.Value
- type UUIDValue
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) 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) ValueFromString ¶
func (t UUIDType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
func (UUIDType) ValueFromTerraform ¶
type UUIDValue ¶
type UUIDValue struct {
basetypes.StringValue
}
UUIDValue is a custom value used to validate that a string is a UUID.
func NewUUIDValue ¶
func (UUIDValue) StringSemanticEquals ¶
func (v UUIDValue) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.