Documentation
¶
Overview ¶
types contains shared attr.Type implementations for unit testing.
Index ¶
- func TestErrorDiagnostic(path path.Path) diag.DiagnosticWithPath
- func TestWarningDiagnostic(path path.Path) diag.DiagnosticWithPath
- type Bool
- type BoolType
- func (t BoolType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (t BoolType) Equal(o attr.Type) bool
- func (t BoolType) String() string
- func (t BoolType) TerraformType(_ context.Context) tftypes.Type
- func (t BoolType) ValueFromBool(ctx context.Context, in basetypes.BoolValue) (basetypes.BoolValuable, diag.Diagnostics)
- func (t BoolType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t BoolType) ValueType(_ context.Context) attr.Value
- type BoolTypeWithSemanticEquals
- func (t BoolTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t BoolTypeWithSemanticEquals) String() string
- func (t BoolTypeWithSemanticEquals) ValueFromBool(ctx context.Context, in basetypes.BoolValue) (basetypes.BoolValuable, diag.Diagnostics)
- func (t BoolTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t BoolTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type BoolTypeWithValidateAttributeError
- type BoolTypeWithValidateAttributeWarning
- type BoolTypeWithValidateError
- type BoolTypeWithValidateParameterError
- type BoolTypeWithValidateWarning
- type BoolValueWithSemanticEquals
- type BoolValueWithValidateAttributeError
- type BoolValueWithValidateAttributeWarning
- type BoolValueWithValidateParameterError
- type DynamicType
- type DynamicTypeWithSemanticEquals
- func (t DynamicTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t DynamicTypeWithSemanticEquals) String() string
- func (t DynamicTypeWithSemanticEquals) ValueFromDynamic(ctx context.Context, in basetypes.DynamicValue) (basetypes.DynamicValuable, diag.Diagnostics)
- func (t DynamicTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t DynamicTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type DynamicValue
- type DynamicValueWithSemanticEquals
- type Float32Type
- type Float32TypeWithSemanticEquals
- func (t Float32TypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t Float32TypeWithSemanticEquals) String() string
- func (t Float32TypeWithSemanticEquals) ValueFromFloat32(ctx context.Context, in basetypes.Float32Value) (basetypes.Float32Valuable, diag.Diagnostics)
- func (t Float32TypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t Float32TypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type Float32Value
- type Float32ValueWithSemanticEquals
- type Float64Type
- type Float64TypeWithSemanticEquals
- func (t Float64TypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t Float64TypeWithSemanticEquals) String() string
- func (t Float64TypeWithSemanticEquals) ValueFromFloat64(ctx context.Context, in basetypes.Float64Value) (basetypes.Float64Valuable, diag.Diagnostics)
- func (t Float64TypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t Float64TypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type Float64Value
- type Float64ValueWithSemanticEquals
- type Int32Type
- type Int32TypeWithSemanticEquals
- func (t Int32TypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t Int32TypeWithSemanticEquals) String() string
- func (t Int32TypeWithSemanticEquals) ValueFromInt32(ctx context.Context, in basetypes.Int32Value) (basetypes.Int32Valuable, diag.Diagnostics)
- func (t Int32TypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t Int32TypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type Int32Value
- type Int32ValueWithSemanticEquals
- type Int64Type
- type Int64TypeWithSemanticEquals
- func (t Int64TypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t Int64TypeWithSemanticEquals) String() string
- func (t Int64TypeWithSemanticEquals) ValueFromInt64(ctx context.Context, in basetypes.Int64Value) (basetypes.Int64Valuable, diag.Diagnostics)
- func (t Int64TypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t Int64TypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type Int64Value
- type Int64ValueWithSemanticEquals
- type Invalid
- type InvalidType
- func (t InvalidType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (t InvalidType) Equal(o attr.Type) bool
- func (t InvalidType) String() string
- func (t InvalidType) TerraformType(_ context.Context) tftypes.Type
- func (t InvalidType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t InvalidType) ValueType(_ context.Context) attr.Value
- type ListNestedAttributesCustomTypeType
- type ListNestedAttributesCustomValue
- type ListType
- type ListTypeWithSemanticEquals
- func (t ListTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t ListTypeWithSemanticEquals) String() string
- func (t ListTypeWithSemanticEquals) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
- func (t ListTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ListTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type ListTypeWithValidateAttributeError
- type ListTypeWithValidateAttributeWarning
- type ListTypeWithValidateError
- type ListTypeWithValidateWarning
- type ListValue
- type ListValueWithSemanticEquals
- type ListValueWithValidateAttributeError
- type ListValueWithValidateAttributeWarning
- type MapNestedAttributesCustomTypeType
- type MapNestedAttributesCustomValue
- type MapType
- type MapTypeWithSemanticEquals
- func (t MapTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t MapTypeWithSemanticEquals) String() string
- func (t MapTypeWithSemanticEquals) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
- func (t MapTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t MapTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type MapTypeWithValidateAttributeError
- type MapTypeWithValidateAttributeWarning
- type MapTypeWithValidateError
- type MapTypeWithValidateWarning
- type MapValue
- type MapValueWithSemanticEquals
- type MapValueWithValidateAttributeError
- type MapValueWithValidateAttributeWarning
- type Number
- type NumberType
- func (t NumberType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (t NumberType) Equal(o attr.Type) bool
- func (t NumberType) String() string
- func (t NumberType) TerraformType(_ context.Context) tftypes.Type
- func (t NumberType) ValueFromNumber(ctx context.Context, in basetypes.NumberValue) (basetypes.NumberValuable, diag.Diagnostics)
- func (t NumberType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NumberType) ValueType(_ context.Context) attr.Value
- type NumberTypeWithSemanticEquals
- func (t NumberTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t NumberTypeWithSemanticEquals) String() string
- func (t NumberTypeWithSemanticEquals) ValueFromNumber(ctx context.Context, in basetypes.NumberValue) (basetypes.NumberValuable, diag.Diagnostics)
- func (t NumberTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NumberTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type NumberTypeWithValidateAttributeError
- type NumberTypeWithValidateAttributeWarning
- type NumberTypeWithValidateError
- type NumberTypeWithValidateWarning
- type NumberValueWithSemanticEquals
- type NumberValueWithValidateAttributeError
- func (v NumberValueWithValidateAttributeError) Equal(value attr.Value) bool
- func (v NumberValueWithValidateAttributeError) IsNull() bool
- func (v NumberValueWithValidateAttributeError) IsUnknown() bool
- func (v NumberValueWithValidateAttributeError) String() string
- func (v NumberValueWithValidateAttributeError) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v NumberValueWithValidateAttributeError) Type(ctx context.Context) attr.Type
- func (v NumberValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, ...)
- type NumberValueWithValidateAttributeWarning
- func (v NumberValueWithValidateAttributeWarning) Equal(value attr.Value) bool
- func (v NumberValueWithValidateAttributeWarning) IsNull() bool
- func (v NumberValueWithValidateAttributeWarning) IsUnknown() bool
- func (v NumberValueWithValidateAttributeWarning) String() string
- func (v NumberValueWithValidateAttributeWarning) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v NumberValueWithValidateAttributeWarning) Type(ctx context.Context) attr.Type
- func (v NumberValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, ...)
- type ObjectType
- type ObjectTypeWithSemanticEquals
- func (t ObjectTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t ObjectTypeWithSemanticEquals) String() string
- func (t ObjectTypeWithSemanticEquals) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t ObjectTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ObjectTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type ObjectTypeWithValidateAttributeError
- type ObjectTypeWithValidateAttributeWarning
- type ObjectTypeWithValidateError
- type ObjectTypeWithValidateWarning
- type ObjectValue
- type ObjectValueWithSemanticEquals
- type ObjectValueWithValidateAttributeError
- type ObjectValueWithValidateAttributeWarning
- type SetNestedAttributesCustomTypeType
- type SetNestedAttributesCustomValue
- type SetType
- type SetTypeWithSemanticEquals
- func (t SetTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t SetTypeWithSemanticEquals) String() string
- func (t SetTypeWithSemanticEquals) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
- func (t SetTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SetTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type SetTypeWithValidateAttributeError
- type SetTypeWithValidateAttributeWarning
- type SetTypeWithValidateError
- type SetTypeWithValidateWarning
- type SetValue
- type SetValueWithSemanticEquals
- type SetValueWithValidateAttributeError
- type SetValueWithValidateAttributeWarning
- type SingleNestedAttributesCustomTypeType
- type SingleNestedAttributesCustomValue
- type String
- func (s String) Equal(o attr.Value) bool
- func (s String) IsNull() bool
- func (s String) IsUnknown() bool
- func (s String) String() string
- func (s String) ToStringValue(ctx context.Context) (types.String, diag.Diagnostics)
- func (s String) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (s String) Type(_ context.Context) attr.Type
- type StringType
- func (t StringType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (t StringType) Equal(o attr.Type) bool
- func (t StringType) String() string
- func (t StringType) TerraformType(_ context.Context) tftypes.Type
- func (t StringType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t StringType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t StringType) ValueType(_ context.Context) attr.Value
- type StringTypeWithSemanticEquals
- func (t StringTypeWithSemanticEquals) Equal(o attr.Type) bool
- func (t StringTypeWithSemanticEquals) String() string
- func (t StringTypeWithSemanticEquals) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t StringTypeWithSemanticEquals) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t StringTypeWithSemanticEquals) ValueType(ctx context.Context) attr.Value
- type StringTypeWithValidateAttributeError
- type StringTypeWithValidateAttributeWarning
- type StringTypeWithValidateError
- type StringTypeWithValidateParameterError
- type StringTypeWithValidateWarning
- type StringValueWithSemanticEquals
- type StringValueWithValidateAttributeError
- func (v StringValueWithValidateAttributeError) Equal(value attr.Value) bool
- func (v StringValueWithValidateAttributeError) IsNull() bool
- func (v StringValueWithValidateAttributeError) IsUnknown() bool
- func (v StringValueWithValidateAttributeError) String() string
- func (v StringValueWithValidateAttributeError) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v StringValueWithValidateAttributeError) Type(ctx context.Context) attr.Type
- func (v StringValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, ...)
- type StringValueWithValidateAttributeWarning
- func (v StringValueWithValidateAttributeWarning) Equal(value attr.Value) bool
- func (v StringValueWithValidateAttributeWarning) IsNull() bool
- func (v StringValueWithValidateAttributeWarning) IsUnknown() bool
- func (v StringValueWithValidateAttributeWarning) String() string
- func (v StringValueWithValidateAttributeWarning) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v StringValueWithValidateAttributeWarning) Type(ctx context.Context) attr.Type
- func (v StringValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, ...)
- type StringValueWithValidateParameterError
- func (v StringValueWithValidateParameterError) Equal(value attr.Value) bool
- func (v StringValueWithValidateParameterError) IsNull() bool
- func (v StringValueWithValidateParameterError) IsUnknown() bool
- func (v StringValueWithValidateParameterError) String() string
- func (v StringValueWithValidateParameterError) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v StringValueWithValidateParameterError) Type(ctx context.Context) attr.Type
- func (v StringValueWithValidateParameterError) ValidateParameter(ctx context.Context, req function.ValidateParameterRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestErrorDiagnostic ¶
func TestErrorDiagnostic(path path.Path) diag.DiagnosticWithPath
func TestWarningDiagnostic ¶
func TestWarningDiagnostic(path path.Path) diag.DiagnosticWithPath
Types ¶
type BoolType ¶
type BoolType struct{}
BoolType is a reimplementation of types.BoolType that can be used as a base for other extension types in testing.
func (BoolType) ApplyTerraform5AttributePathStep ¶
func (t BoolType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
func (BoolType) ValueFromBool ¶
func (t BoolType) ValueFromBool(ctx context.Context, in basetypes.BoolValue) (basetypes.BoolValuable, diag.Diagnostics)
func (BoolType) ValueFromTerraform ¶
type BoolTypeWithSemanticEquals ¶
type BoolTypeWithSemanticEquals struct { basetypes.BoolType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
BoolTypeWithSemanticEquals is a BoolType associated with BoolValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (BoolTypeWithSemanticEquals) Equal ¶
func (t BoolTypeWithSemanticEquals) Equal(o attr.Type) bool
func (BoolTypeWithSemanticEquals) String ¶
func (t BoolTypeWithSemanticEquals) String() string
func (BoolTypeWithSemanticEquals) ValueFromBool ¶
func (t BoolTypeWithSemanticEquals) ValueFromBool(ctx context.Context, in basetypes.BoolValue) (basetypes.BoolValuable, diag.Diagnostics)
func (BoolTypeWithSemanticEquals) ValueFromTerraform ¶
type BoolTypeWithValidateAttributeError ¶ added in v1.8.0
type BoolTypeWithValidateAttributeError struct {
BoolType
}
func (BoolTypeWithValidateAttributeError) Equal ¶ added in v1.8.0
func (t BoolTypeWithValidateAttributeError) Equal(o attr.Type) bool
func (BoolTypeWithValidateAttributeError) ValueFromTerraform ¶ added in v1.8.0
type BoolTypeWithValidateAttributeWarning ¶ added in v1.8.0
type BoolTypeWithValidateAttributeWarning struct {
BoolType
}
func (BoolTypeWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (t BoolTypeWithValidateAttributeWarning) Equal(o attr.Type) bool
func (BoolTypeWithValidateAttributeWarning) ValueFromTerraform ¶ added in v1.8.0
type BoolTypeWithValidateError ¶
type BoolTypeWithValidateError struct {
BoolType
}
func (BoolTypeWithValidateError) Validate ¶
func (t BoolTypeWithValidateError) Validate(ctx context.Context, in tftypes.Value, path path.Path) diag.Diagnostics
func (BoolTypeWithValidateError) ValueFromTerraform ¶
type BoolTypeWithValidateParameterError ¶ added in v1.8.0
type BoolTypeWithValidateParameterError struct {
BoolType
}
func (BoolTypeWithValidateParameterError) Equal ¶ added in v1.8.0
func (t BoolTypeWithValidateParameterError) Equal(o attr.Type) bool
func (BoolTypeWithValidateParameterError) ValueFromTerraform ¶ added in v1.8.0
type BoolTypeWithValidateWarning ¶
type BoolTypeWithValidateWarning struct {
BoolType
}
func (BoolTypeWithValidateWarning) Validate ¶
func (t BoolTypeWithValidateWarning) Validate(ctx context.Context, in tftypes.Value, path path.Path) diag.Diagnostics
func (BoolTypeWithValidateWarning) ValueFromTerraform ¶
type BoolValueWithSemanticEquals ¶
type BoolValueWithSemanticEquals struct { basetypes.BoolValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (BoolValueWithSemanticEquals) BoolSemanticEquals ¶
func (v BoolValueWithSemanticEquals) BoolSemanticEquals(ctx context.Context, otherV basetypes.BoolValuable) (bool, diag.Diagnostics)
type BoolValueWithValidateAttributeError ¶ added in v1.8.0
type BoolValueWithValidateAttributeError struct {
Bool
}
func (BoolValueWithValidateAttributeError) Equal ¶ added in v1.8.0
func (v BoolValueWithValidateAttributeError) Equal(o attr.Value) bool
func (BoolValueWithValidateAttributeError) ValidateAttribute ¶ added in v1.8.0
func (v BoolValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type BoolValueWithValidateAttributeWarning ¶ added in v1.8.0
type BoolValueWithValidateAttributeWarning struct {
Bool
}
func (BoolValueWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (v BoolValueWithValidateAttributeWarning) Equal(o attr.Value) bool
func (BoolValueWithValidateAttributeWarning) ValidateAttribute ¶ added in v1.8.0
func (v BoolValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type BoolValueWithValidateParameterError ¶ added in v1.8.0
type BoolValueWithValidateParameterError struct {
Bool
}
func (BoolValueWithValidateParameterError) ValidateParameter ¶ added in v1.8.0
func (v BoolValueWithValidateParameterError) ValidateParameter(ctx context.Context, req function.ValidateParameterRequest, resp *function.ValidateParameterResponse)
type DynamicType ¶ added in v1.7.0
type DynamicType struct {
basetypes.DynamicType
}
type DynamicTypeWithSemanticEquals ¶ added in v1.7.0
type DynamicTypeWithSemanticEquals struct { basetypes.DynamicType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
DynamicTypeWithSemanticEquals is a DynamicType associated with DynamicValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (DynamicTypeWithSemanticEquals) Equal ¶ added in v1.7.0
func (t DynamicTypeWithSemanticEquals) Equal(o attr.Type) bool
func (DynamicTypeWithSemanticEquals) String ¶ added in v1.7.0
func (t DynamicTypeWithSemanticEquals) String() string
func (DynamicTypeWithSemanticEquals) ValueFromDynamic ¶ added in v1.7.0
func (t DynamicTypeWithSemanticEquals) ValueFromDynamic(ctx context.Context, in basetypes.DynamicValue) (basetypes.DynamicValuable, diag.Diagnostics)
func (DynamicTypeWithSemanticEquals) ValueFromTerraform ¶ added in v1.7.0
type DynamicValue ¶ added in v1.7.0
type DynamicValue struct {
basetypes.DynamicValue
}
type DynamicValueWithSemanticEquals ¶ added in v1.7.0
type DynamicValueWithSemanticEquals struct { basetypes.DynamicValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (DynamicValueWithSemanticEquals) DynamicSemanticEquals ¶ added in v1.7.0
func (v DynamicValueWithSemanticEquals) DynamicSemanticEquals(ctx context.Context, otherV basetypes.DynamicValuable) (bool, diag.Diagnostics)
type Float32Type ¶ added in v1.10.0
type Float32Type struct {
basetypes.Float32Type
}
type Float32TypeWithSemanticEquals ¶ added in v1.10.0
type Float32TypeWithSemanticEquals struct { basetypes.Float32Type SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
Float32TypeWithSemanticEquals is a Float32Type associated with Float32ValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (Float32TypeWithSemanticEquals) Equal ¶ added in v1.10.0
func (t Float32TypeWithSemanticEquals) Equal(o attr.Type) bool
func (Float32TypeWithSemanticEquals) String ¶ added in v1.10.0
func (t Float32TypeWithSemanticEquals) String() string
func (Float32TypeWithSemanticEquals) ValueFromFloat32 ¶ added in v1.10.0
func (t Float32TypeWithSemanticEquals) ValueFromFloat32(ctx context.Context, in basetypes.Float32Value) (basetypes.Float32Valuable, diag.Diagnostics)
func (Float32TypeWithSemanticEquals) ValueFromTerraform ¶ added in v1.10.0
type Float32Value ¶ added in v1.10.0
type Float32Value struct {
basetypes.Float32Value
}
type Float32ValueWithSemanticEquals ¶ added in v1.10.0
type Float32ValueWithSemanticEquals struct { basetypes.Float32Value SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (Float32ValueWithSemanticEquals) Equal ¶ added in v1.10.0
func (v Float32ValueWithSemanticEquals) Equal(o attr.Value) bool
func (Float32ValueWithSemanticEquals) Float32SemanticEquals ¶ added in v1.10.0
func (v Float32ValueWithSemanticEquals) Float32SemanticEquals(ctx context.Context, otherV basetypes.Float32Valuable) (bool, diag.Diagnostics)
type Float64Type ¶ added in v1.8.0
type Float64Type struct {
basetypes.Float64Type
}
type Float64TypeWithSemanticEquals ¶
type Float64TypeWithSemanticEquals struct { basetypes.Float64Type SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
Float64TypeWithSemanticEquals is a Float64Type associated with Float64ValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (Float64TypeWithSemanticEquals) Equal ¶
func (t Float64TypeWithSemanticEquals) Equal(o attr.Type) bool
func (Float64TypeWithSemanticEquals) String ¶
func (t Float64TypeWithSemanticEquals) String() string
func (Float64TypeWithSemanticEquals) ValueFromFloat64 ¶
func (t Float64TypeWithSemanticEquals) ValueFromFloat64(ctx context.Context, in basetypes.Float64Value) (basetypes.Float64Valuable, diag.Diagnostics)
func (Float64TypeWithSemanticEquals) ValueFromTerraform ¶
type Float64Value ¶ added in v1.8.0
type Float64Value struct {
basetypes.Float64Value
}
type Float64ValueWithSemanticEquals ¶
type Float64ValueWithSemanticEquals struct { basetypes.Float64Value SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (Float64ValueWithSemanticEquals) Equal ¶
func (v Float64ValueWithSemanticEquals) Equal(o attr.Value) bool
func (Float64ValueWithSemanticEquals) Float64SemanticEquals ¶
func (v Float64ValueWithSemanticEquals) Float64SemanticEquals(ctx context.Context, otherV basetypes.Float64Valuable) (bool, diag.Diagnostics)
type Int32TypeWithSemanticEquals ¶ added in v1.10.0
type Int32TypeWithSemanticEquals struct { basetypes.Int32Type SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
Int32TypeWithSemanticEquals is an Int32Type associated with Int32ValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (Int32TypeWithSemanticEquals) Equal ¶ added in v1.10.0
func (t Int32TypeWithSemanticEquals) Equal(o attr.Type) bool
func (Int32TypeWithSemanticEquals) String ¶ added in v1.10.0
func (t Int32TypeWithSemanticEquals) String() string
func (Int32TypeWithSemanticEquals) ValueFromInt32 ¶ added in v1.10.0
func (t Int32TypeWithSemanticEquals) ValueFromInt32(ctx context.Context, in basetypes.Int32Value) (basetypes.Int32Valuable, diag.Diagnostics)
func (Int32TypeWithSemanticEquals) ValueFromTerraform ¶ added in v1.10.0
type Int32Value ¶ added in v1.10.0
type Int32Value struct {
basetypes.Int32Value
}
type Int32ValueWithSemanticEquals ¶ added in v1.10.0
type Int32ValueWithSemanticEquals struct { basetypes.Int32Value SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (Int32ValueWithSemanticEquals) Equal ¶ added in v1.10.0
func (v Int32ValueWithSemanticEquals) Equal(o attr.Value) bool
func (Int32ValueWithSemanticEquals) Int32SemanticEquals ¶ added in v1.10.0
func (v Int32ValueWithSemanticEquals) Int32SemanticEquals(ctx context.Context, otherV basetypes.Int32Valuable) (bool, diag.Diagnostics)
type Int64TypeWithSemanticEquals ¶
type Int64TypeWithSemanticEquals struct { basetypes.Int64Type SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
Int64TypeWithSemanticEquals is a Int64Type associated with Int64ValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (Int64TypeWithSemanticEquals) Equal ¶
func (t Int64TypeWithSemanticEquals) Equal(o attr.Type) bool
func (Int64TypeWithSemanticEquals) String ¶
func (t Int64TypeWithSemanticEquals) String() string
func (Int64TypeWithSemanticEquals) ValueFromInt64 ¶
func (t Int64TypeWithSemanticEquals) ValueFromInt64(ctx context.Context, in basetypes.Int64Value) (basetypes.Int64Valuable, diag.Diagnostics)
func (Int64TypeWithSemanticEquals) ValueFromTerraform ¶
type Int64Value ¶ added in v1.8.0
type Int64Value struct {
basetypes.Int64Value
}
type Int64ValueWithSemanticEquals ¶
type Int64ValueWithSemanticEquals struct { basetypes.Int64Value SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (Int64ValueWithSemanticEquals) Equal ¶
func (v Int64ValueWithSemanticEquals) Equal(o attr.Value) bool
func (Int64ValueWithSemanticEquals) Int64SemanticEquals ¶
func (v Int64ValueWithSemanticEquals) Int64SemanticEquals(ctx context.Context, otherV basetypes.Int64Valuable) (bool, diag.Diagnostics)
type Invalid ¶
type Invalid struct{}
Invalid is an attr.Value that returns errors for methods than can return errors.
func (Invalid) ToTerraformValue ¶
type InvalidType ¶
type InvalidType struct{}
InvalidType is an attr.Type that returns errors for methods that can return errors.
func (InvalidType) ApplyTerraform5AttributePathStep ¶
func (t InvalidType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
func (InvalidType) String ¶
func (t InvalidType) String() string
func (InvalidType) TerraformType ¶
func (t InvalidType) TerraformType(_ context.Context) tftypes.Type
func (InvalidType) ValueFromTerraform ¶
type ListNestedAttributesCustomTypeType ¶
func (ListNestedAttributesCustomTypeType) ValueFromTerraform ¶
type ListTypeWithSemanticEquals ¶
type ListTypeWithSemanticEquals struct { basetypes.ListType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
ListTypeWithSemanticEquals is a ListType associated with ListValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (ListTypeWithSemanticEquals) Equal ¶
func (t ListTypeWithSemanticEquals) Equal(o attr.Type) bool
func (ListTypeWithSemanticEquals) String ¶
func (t ListTypeWithSemanticEquals) String() string
func (ListTypeWithSemanticEquals) ValueFromList ¶
func (t ListTypeWithSemanticEquals) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
func (ListTypeWithSemanticEquals) ValueFromTerraform ¶
type ListTypeWithValidateAttributeError ¶ added in v1.8.0
func (ListTypeWithValidateAttributeError) ValueFromTerraform ¶ added in v1.8.0
type ListTypeWithValidateAttributeWarning ¶ added in v1.8.0
func (ListTypeWithValidateAttributeWarning) ValueFromTerraform ¶ added in v1.8.0
type ListValueWithSemanticEquals ¶
type ListValueWithSemanticEquals struct { basetypes.ListValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (ListValueWithSemanticEquals) Equal ¶
func (v ListValueWithSemanticEquals) Equal(o attr.Value) bool
func (ListValueWithSemanticEquals) ListSemanticEquals ¶
func (v ListValueWithSemanticEquals) ListSemanticEquals(ctx context.Context, otherV basetypes.ListValuable) (bool, diag.Diagnostics)
type ListValueWithValidateAttributeError ¶ added in v1.8.0
func (ListValueWithValidateAttributeError) ValidateAttribute ¶ added in v1.8.0
func (v ListValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type ListValueWithValidateAttributeWarning ¶ added in v1.8.0
func (ListValueWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (v ListValueWithValidateAttributeWarning) Equal(o attr.Value) bool
func (ListValueWithValidateAttributeWarning) ValidateAttribute ¶ added in v1.8.0
func (v ListValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type MapNestedAttributesCustomTypeType ¶
func (MapNestedAttributesCustomTypeType) ValueFromTerraform ¶
type MapTypeWithSemanticEquals ¶
type MapTypeWithSemanticEquals struct { basetypes.MapType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
MapTypeWithSemanticEquals is a MapType associated with MapValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (MapTypeWithSemanticEquals) String ¶
func (t MapTypeWithSemanticEquals) String() string
func (MapTypeWithSemanticEquals) ValueFromMap ¶
func (t MapTypeWithSemanticEquals) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
func (MapTypeWithSemanticEquals) ValueFromTerraform ¶
type MapTypeWithValidateAttributeError ¶ added in v1.8.0
func (MapTypeWithValidateAttributeError) ValueFromTerraform ¶ added in v1.8.0
type MapTypeWithValidateAttributeWarning ¶ added in v1.8.0
func (MapTypeWithValidateAttributeWarning) ValueFromTerraform ¶ added in v1.8.0
type MapValueWithSemanticEquals ¶
type MapValueWithSemanticEquals struct { basetypes.MapValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (MapValueWithSemanticEquals) Equal ¶
func (v MapValueWithSemanticEquals) Equal(o attr.Value) bool
func (MapValueWithSemanticEquals) MapSemanticEquals ¶
func (v MapValueWithSemanticEquals) MapSemanticEquals(ctx context.Context, otherV basetypes.MapValuable) (bool, diag.Diagnostics)
type MapValueWithValidateAttributeError ¶ added in v1.8.0
func (MapValueWithValidateAttributeError) ValidateAttribute ¶ added in v1.8.0
func (v MapValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type MapValueWithValidateAttributeWarning ¶ added in v1.8.0
func (MapValueWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (v MapValueWithValidateAttributeWarning) Equal(o attr.Value) bool
func (MapValueWithValidateAttributeWarning) ValidateAttribute ¶ added in v1.8.0
func (v MapValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type NumberType ¶
type NumberType struct{}
NumberType is a reimplementation of types.NumberType that can be used as a base for other extension types in testing.
func (NumberType) ApplyTerraform5AttributePathStep ¶
func (t NumberType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
func (NumberType) String ¶
func (t NumberType) String() string
func (NumberType) TerraformType ¶
func (t NumberType) TerraformType(_ context.Context) tftypes.Type
func (NumberType) ValueFromNumber ¶
func (t NumberType) ValueFromNumber(ctx context.Context, in basetypes.NumberValue) (basetypes.NumberValuable, diag.Diagnostics)
func (NumberType) ValueFromTerraform ¶
type NumberTypeWithSemanticEquals ¶
type NumberTypeWithSemanticEquals struct { basetypes.NumberType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
NumberTypeWithSemanticEquals is a NumberType associated with NumberValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (NumberTypeWithSemanticEquals) Equal ¶
func (t NumberTypeWithSemanticEquals) Equal(o attr.Type) bool
func (NumberTypeWithSemanticEquals) String ¶
func (t NumberTypeWithSemanticEquals) String() string
func (NumberTypeWithSemanticEquals) ValueFromNumber ¶
func (t NumberTypeWithSemanticEquals) ValueFromNumber(ctx context.Context, in basetypes.NumberValue) (basetypes.NumberValuable, diag.Diagnostics)
func (NumberTypeWithSemanticEquals) ValueFromTerraform ¶
type NumberTypeWithValidateAttributeError ¶ added in v1.8.0
type NumberTypeWithValidateAttributeError struct {
NumberType
}
func (NumberTypeWithValidateAttributeError) Equal ¶ added in v1.8.0
func (t NumberTypeWithValidateAttributeError) Equal(o attr.Type) bool
func (NumberTypeWithValidateAttributeError) ValueFromTerraform ¶ added in v1.8.0
type NumberTypeWithValidateAttributeWarning ¶ added in v1.8.0
type NumberTypeWithValidateAttributeWarning struct {
NumberType
}
func (NumberTypeWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (t NumberTypeWithValidateAttributeWarning) Equal(o attr.Type) bool
func (NumberTypeWithValidateAttributeWarning) ValueFromTerraform ¶ added in v1.8.0
type NumberTypeWithValidateError ¶
type NumberTypeWithValidateError struct {
NumberType
}
func (NumberTypeWithValidateError) Validate ¶
func (t NumberTypeWithValidateError) Validate(ctx context.Context, in tftypes.Value, path path.Path) diag.Diagnostics
func (NumberTypeWithValidateError) ValueFromTerraform ¶
type NumberTypeWithValidateWarning ¶
type NumberTypeWithValidateWarning struct {
NumberType
}
func (NumberTypeWithValidateWarning) Validate ¶
func (t NumberTypeWithValidateWarning) Validate(ctx context.Context, in tftypes.Value, path path.Path) diag.Diagnostics
func (NumberTypeWithValidateWarning) ValueFromTerraform ¶
type NumberValueWithSemanticEquals ¶
type NumberValueWithSemanticEquals struct { basetypes.NumberValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (NumberValueWithSemanticEquals) Equal ¶
func (v NumberValueWithSemanticEquals) Equal(o attr.Value) bool
func (NumberValueWithSemanticEquals) NumberSemanticEquals ¶
func (v NumberValueWithSemanticEquals) NumberSemanticEquals(ctx context.Context, otherV basetypes.NumberValuable) (bool, diag.Diagnostics)
type NumberValueWithValidateAttributeError ¶ added in v1.8.0
type NumberValueWithValidateAttributeError struct {
InternalNumber Number
}
func (NumberValueWithValidateAttributeError) Equal ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeError) Equal(value attr.Value) bool
func (NumberValueWithValidateAttributeError) IsNull ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeError) IsNull() bool
func (NumberValueWithValidateAttributeError) IsUnknown ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeError) IsUnknown() bool
func (NumberValueWithValidateAttributeError) String ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeError) String() string
func (NumberValueWithValidateAttributeError) ToTerraformValue ¶ added in v1.8.0
func (NumberValueWithValidateAttributeError) Type ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeError) Type(ctx context.Context) attr.Type
func (NumberValueWithValidateAttributeError) ValidateAttribute ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type NumberValueWithValidateAttributeWarning ¶ added in v1.8.0
type NumberValueWithValidateAttributeWarning struct {
InternalNumber Number
}
func (NumberValueWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeWarning) Equal(value attr.Value) bool
func (NumberValueWithValidateAttributeWarning) IsNull ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeWarning) IsNull() bool
func (NumberValueWithValidateAttributeWarning) IsUnknown ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeWarning) IsUnknown() bool
func (NumberValueWithValidateAttributeWarning) String ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeWarning) String() string
func (NumberValueWithValidateAttributeWarning) ToTerraformValue ¶ added in v1.8.0
func (NumberValueWithValidateAttributeWarning) Type ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeWarning) Type(ctx context.Context) attr.Type
func (NumberValueWithValidateAttributeWarning) ValidateAttribute ¶ added in v1.8.0
func (v NumberValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type ObjectType ¶
type ObjectType struct {
basetypes.ObjectType
}
type ObjectTypeWithSemanticEquals ¶
type ObjectTypeWithSemanticEquals struct { basetypes.ObjectType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
ObjectTypeWithSemanticEquals is a ObjectType associated with ObjectValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (ObjectTypeWithSemanticEquals) Equal ¶
func (t ObjectTypeWithSemanticEquals) Equal(o attr.Type) bool
func (ObjectTypeWithSemanticEquals) String ¶
func (t ObjectTypeWithSemanticEquals) String() string
func (ObjectTypeWithSemanticEquals) ValueFromObject ¶
func (t ObjectTypeWithSemanticEquals) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ObjectTypeWithSemanticEquals) ValueFromTerraform ¶
type ObjectTypeWithValidateAttributeError ¶ added in v1.8.0
type ObjectTypeWithValidateAttributeError struct {
types.ObjectType
}
func (ObjectTypeWithValidateAttributeError) ValueFromTerraform ¶ added in v1.8.0
type ObjectTypeWithValidateAttributeWarning ¶ added in v1.8.0
type ObjectTypeWithValidateAttributeWarning struct {
types.ObjectType
}
func (ObjectTypeWithValidateAttributeWarning) ValueFromTerraform ¶ added in v1.8.0
type ObjectTypeWithValidateError ¶ added in v1.8.0
type ObjectTypeWithValidateError struct {
types.ObjectType
}
type ObjectTypeWithValidateWarning ¶ added in v1.8.0
type ObjectTypeWithValidateWarning struct {
types.ObjectType
}
type ObjectValue ¶
type ObjectValue struct {
basetypes.ObjectValue
}
type ObjectValueWithSemanticEquals ¶
type ObjectValueWithSemanticEquals struct { basetypes.ObjectValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (ObjectValueWithSemanticEquals) Equal ¶
func (v ObjectValueWithSemanticEquals) Equal(o attr.Value) bool
func (ObjectValueWithSemanticEquals) ObjectSemanticEquals ¶
func (v ObjectValueWithSemanticEquals) ObjectSemanticEquals(ctx context.Context, otherV basetypes.ObjectValuable) (bool, diag.Diagnostics)
type ObjectValueWithValidateAttributeError ¶ added in v1.8.0
func (ObjectValueWithValidateAttributeError) ValidateAttribute ¶ added in v1.8.0
func (v ObjectValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type ObjectValueWithValidateAttributeWarning ¶ added in v1.8.0
func (ObjectValueWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (v ObjectValueWithValidateAttributeWarning) Equal(o attr.Value) bool
func (ObjectValueWithValidateAttributeWarning) ValidateAttribute ¶ added in v1.8.0
func (v ObjectValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type SetNestedAttributesCustomTypeType ¶
func (SetNestedAttributesCustomTypeType) ValueFromTerraform ¶
type SetTypeWithSemanticEquals ¶
type SetTypeWithSemanticEquals struct { basetypes.SetType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
SetTypeWithSemanticEquals is a SetType associated with SetValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (SetTypeWithSemanticEquals) String ¶
func (t SetTypeWithSemanticEquals) String() string
func (SetTypeWithSemanticEquals) ValueFromSet ¶
func (t SetTypeWithSemanticEquals) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
func (SetTypeWithSemanticEquals) ValueFromTerraform ¶
type SetTypeWithValidateAttributeError ¶ added in v1.8.0
func (SetTypeWithValidateAttributeError) ValueFromTerraform ¶ added in v1.8.0
type SetTypeWithValidateAttributeWarning ¶ added in v1.8.0
func (SetTypeWithValidateAttributeWarning) ValueFromTerraform ¶ added in v1.8.0
type SetValueWithSemanticEquals ¶
type SetValueWithSemanticEquals struct { basetypes.SetValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (SetValueWithSemanticEquals) Equal ¶
func (v SetValueWithSemanticEquals) Equal(o attr.Value) bool
func (SetValueWithSemanticEquals) SetSemanticEquals ¶
func (v SetValueWithSemanticEquals) SetSemanticEquals(ctx context.Context, otherV basetypes.SetValuable) (bool, diag.Diagnostics)
type SetValueWithValidateAttributeError ¶ added in v1.8.0
func (SetValueWithValidateAttributeError) ValidateAttribute ¶ added in v1.8.0
func (v SetValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type SetValueWithValidateAttributeWarning ¶ added in v1.8.0
func (SetValueWithValidateAttributeWarning) ValidateAttribute ¶ added in v1.8.0
func (v SetValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type SingleNestedAttributesCustomTypeType ¶
type SingleNestedAttributesCustomTypeType struct {
types.ObjectType
}
func (SingleNestedAttributesCustomTypeType) ValueFromTerraform ¶
type StringType ¶
type StringType struct{}
StringType is a reimplementation of types.StringType that can be used as a base for other extension types in testing.
func (StringType) ApplyTerraform5AttributePathStep ¶
func (t StringType) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
func (StringType) String ¶
func (t StringType) String() string
func (StringType) TerraformType ¶
func (t StringType) TerraformType(_ context.Context) tftypes.Type
func (StringType) ValueFromString ¶
func (t StringType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
func (StringType) ValueFromTerraform ¶
type StringTypeWithSemanticEquals ¶
type StringTypeWithSemanticEquals struct { basetypes.StringType SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
StringTypeWithSemanticEquals is a StringType associated with StringValueWithSemanticEquals, which implements semantic equality logic that returns the SemanticEquals boolean for testing.
func (StringTypeWithSemanticEquals) Equal ¶
func (t StringTypeWithSemanticEquals) Equal(o attr.Type) bool
func (StringTypeWithSemanticEquals) String ¶
func (t StringTypeWithSemanticEquals) String() string
func (StringTypeWithSemanticEquals) ValueFromString ¶
func (t StringTypeWithSemanticEquals) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
func (StringTypeWithSemanticEquals) ValueFromTerraform ¶
type StringTypeWithValidateAttributeError ¶ added in v1.8.0
type StringTypeWithValidateAttributeError struct {
StringType
}
func (StringTypeWithValidateAttributeError) Equal ¶ added in v1.8.0
func (t StringTypeWithValidateAttributeError) Equal(o attr.Type) bool
func (StringTypeWithValidateAttributeError) ValueFromTerraform ¶ added in v1.8.0
type StringTypeWithValidateAttributeWarning ¶ added in v1.8.0
type StringTypeWithValidateAttributeWarning struct {
StringType
}
func (StringTypeWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (t StringTypeWithValidateAttributeWarning) Equal(o attr.Type) bool
func (StringTypeWithValidateAttributeWarning) ValueFromTerraform ¶ added in v1.8.0
type StringTypeWithValidateError ¶
type StringTypeWithValidateError struct {
StringType
}
func (StringTypeWithValidateError) Equal ¶
func (t StringTypeWithValidateError) Equal(o attr.Type) bool
func (StringTypeWithValidateError) Validate ¶
func (t StringTypeWithValidateError) Validate(ctx context.Context, in tftypes.Value, path path.Path) diag.Diagnostics
func (StringTypeWithValidateError) ValueFromTerraform ¶
type StringTypeWithValidateParameterError ¶ added in v1.8.0
type StringTypeWithValidateParameterError struct {
StringType
}
func (StringTypeWithValidateParameterError) Equal ¶ added in v1.8.0
func (t StringTypeWithValidateParameterError) Equal(o attr.Type) bool
func (StringTypeWithValidateParameterError) ValueFromTerraform ¶ added in v1.8.0
type StringTypeWithValidateWarning ¶
type StringTypeWithValidateWarning struct {
StringType
}
func (StringTypeWithValidateWarning) Equal ¶
func (t StringTypeWithValidateWarning) Equal(o attr.Type) bool
func (StringTypeWithValidateWarning) Validate ¶
func (t StringTypeWithValidateWarning) Validate(ctx context.Context, in tftypes.Value, path path.Path) diag.Diagnostics
func (StringTypeWithValidateWarning) ValueFromTerraform ¶
type StringValueWithSemanticEquals ¶
type StringValueWithSemanticEquals struct { basetypes.StringValue SemanticEquals bool SemanticEqualsDiagnostics diag.Diagnostics }
func (StringValueWithSemanticEquals) Equal ¶
func (v StringValueWithSemanticEquals) Equal(o attr.Value) bool
func (StringValueWithSemanticEquals) StringSemanticEquals ¶
func (v StringValueWithSemanticEquals) StringSemanticEquals(ctx context.Context, otherV basetypes.StringValuable) (bool, diag.Diagnostics)
type StringValueWithValidateAttributeError ¶ added in v1.8.0
type StringValueWithValidateAttributeError struct {
InternalString String
}
func (StringValueWithValidateAttributeError) Equal ¶ added in v1.8.0
func (v StringValueWithValidateAttributeError) Equal(value attr.Value) bool
func (StringValueWithValidateAttributeError) IsNull ¶ added in v1.8.0
func (v StringValueWithValidateAttributeError) IsNull() bool
func (StringValueWithValidateAttributeError) IsUnknown ¶ added in v1.8.0
func (v StringValueWithValidateAttributeError) IsUnknown() bool
func (StringValueWithValidateAttributeError) String ¶ added in v1.8.0
func (v StringValueWithValidateAttributeError) String() string
func (StringValueWithValidateAttributeError) ToTerraformValue ¶ added in v1.8.0
func (StringValueWithValidateAttributeError) Type ¶ added in v1.8.0
func (v StringValueWithValidateAttributeError) Type(ctx context.Context) attr.Type
func (StringValueWithValidateAttributeError) ValidateAttribute ¶ added in v1.8.0
func (v StringValueWithValidateAttributeError) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type StringValueWithValidateAttributeWarning ¶ added in v1.8.0
type StringValueWithValidateAttributeWarning struct {
InternalString String
}
func (StringValueWithValidateAttributeWarning) Equal ¶ added in v1.8.0
func (v StringValueWithValidateAttributeWarning) Equal(value attr.Value) bool
func (StringValueWithValidateAttributeWarning) IsNull ¶ added in v1.8.0
func (v StringValueWithValidateAttributeWarning) IsNull() bool
func (StringValueWithValidateAttributeWarning) IsUnknown ¶ added in v1.8.0
func (v StringValueWithValidateAttributeWarning) IsUnknown() bool
func (StringValueWithValidateAttributeWarning) String ¶ added in v1.8.0
func (v StringValueWithValidateAttributeWarning) String() string
func (StringValueWithValidateAttributeWarning) ToTerraformValue ¶ added in v1.8.0
func (StringValueWithValidateAttributeWarning) Type ¶ added in v1.8.0
func (v StringValueWithValidateAttributeWarning) Type(ctx context.Context) attr.Type
func (StringValueWithValidateAttributeWarning) ValidateAttribute ¶ added in v1.8.0
func (v StringValueWithValidateAttributeWarning) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type StringValueWithValidateParameterError ¶ added in v1.8.0
type StringValueWithValidateParameterError struct {
InternalString String
}
func (StringValueWithValidateParameterError) Equal ¶ added in v1.8.0
func (v StringValueWithValidateParameterError) Equal(value attr.Value) bool
func (StringValueWithValidateParameterError) IsNull ¶ added in v1.8.0
func (v StringValueWithValidateParameterError) IsNull() bool
func (StringValueWithValidateParameterError) IsUnknown ¶ added in v1.8.0
func (v StringValueWithValidateParameterError) IsUnknown() bool
func (StringValueWithValidateParameterError) String ¶ added in v1.8.0
func (v StringValueWithValidateParameterError) String() string
func (StringValueWithValidateParameterError) ToTerraformValue ¶ added in v1.8.0
func (StringValueWithValidateParameterError) Type ¶ added in v1.8.0
func (v StringValueWithValidateParameterError) Type(ctx context.Context) attr.Type
func (StringValueWithValidateParameterError) ValidateParameter ¶ added in v1.8.0
func (v StringValueWithValidateParameterError) ValidateParameter(ctx context.Context, req function.ValidateParameterRequest, resp *function.ValidateParameterResponse)
Source Files
¶
- bool.go
- boolwithsemanticequals.go
- boolwithvalidate.go
- boolwithvalidateattribute.go
- boolwithvalidateparameter.go
- diags.go
- doc.go
- dynamic.go
- dynamicwithsemanticequals.go
- float32.go
- float32withsemanticequals.go
- float64.go
- float64withsemanticequals.go
- int32.go
- int32withsemanticequals.go
- int64.go
- int64withsemanticequals.go
- invalid.go
- list.go
- listnestedattributescustom.go
- listwithsemanticequals.go
- listwithvalidate.go
- listwithvalidateattribute.go
- map.go
- mapnestedattributescustom.go
- mapwithsemanticequals.go
- mapwithvalidate.go
- mapwithvalidateattribute.go
- number.go
- numberwithsemanticequals.go
- numberwithvalidate.go
- numberwithvalidateattribute.go
- object.go
- objectwithsemanticequals.go
- objectwithvalidate.go
- objectwithvalidateattribute.go
- set.go
- setnestedattributescustom.go
- setwithsemanticequals.go
- setwithvalidate.go
- setwithvalidateattribute.go
- singlenestedattributescustom.go
- string.go
- stringwithsemanticequals.go
- stringwithvalidate.go
- stringwithvalidateattribute.go
- stringwithvalidateparameter.go