testtypes

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Overview

types contains shared attr.Type implementations for unit testing.

Index

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 Bool

type Bool struct {
	types.Bool

	CreatedBy attr.Type
}

func (Bool) Equal

func (b Bool) Equal(o attr.Value) bool

func (Bool) IsNull

func (b Bool) IsNull() bool

func (Bool) IsUnknown

func (b Bool) IsUnknown() bool

func (Bool) String

func (b Bool) String() string

func (Bool) Type

func (b Bool) Type(_ context.Context) attr.Type

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

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

func (BoolType) String

func (t BoolType) String() string

func (BoolType) TerraformType

func (t BoolType) TerraformType(_ context.Context) tftypes.Type

func (BoolType) ValueFromBool

func (BoolType) ValueFromTerraform

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

func (BoolType) ValueType

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

ValueType returns the Value type.

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 (BoolTypeWithSemanticEquals) String

func (BoolTypeWithSemanticEquals) ValueFromBool

func (BoolTypeWithSemanticEquals) ValueFromTerraform

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

func (BoolTypeWithSemanticEquals) ValueType

type BoolTypeWithValidateAttributeError added in v1.8.0

type BoolTypeWithValidateAttributeError struct {
	BoolType
}

func (BoolTypeWithValidateAttributeError) Equal added in v1.8.0

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 (BoolTypeWithValidateAttributeWarning) ValueFromTerraform added in v1.8.0

type BoolTypeWithValidateError

type BoolTypeWithValidateError struct {
	BoolType
}

func (BoolTypeWithValidateError) Validate

func (BoolTypeWithValidateError) ValueFromTerraform

func (b BoolTypeWithValidateError) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type BoolTypeWithValidateParameterError added in v1.8.0

type BoolTypeWithValidateParameterError struct {
	BoolType
}

func (BoolTypeWithValidateParameterError) Equal added in v1.8.0

func (BoolTypeWithValidateParameterError) ValueFromTerraform added in v1.8.0

type BoolTypeWithValidateWarning

type BoolTypeWithValidateWarning struct {
	BoolType
}

func (BoolTypeWithValidateWarning) Validate

func (BoolTypeWithValidateWarning) ValueFromTerraform

func (b BoolTypeWithValidateWarning) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type BoolValueWithSemanticEquals

type BoolValueWithSemanticEquals struct {
	basetypes.BoolValue

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (BoolValueWithSemanticEquals) BoolSemanticEquals

func (BoolValueWithSemanticEquals) Equal

func (BoolValueWithSemanticEquals) Type

type BoolValueWithValidateAttributeError added in v1.8.0

type BoolValueWithValidateAttributeError struct {
	Bool
}

func (BoolValueWithValidateAttributeError) Equal added in v1.8.0

func (BoolValueWithValidateAttributeError) ValidateAttribute added in v1.8.0

type BoolValueWithValidateAttributeWarning added in v1.8.0

type BoolValueWithValidateAttributeWarning struct {
	Bool
}

func (BoolValueWithValidateAttributeWarning) Equal added in v1.8.0

func (BoolValueWithValidateAttributeWarning) ValidateAttribute added in v1.8.0

type BoolValueWithValidateParameterError added in v1.8.0

type BoolValueWithValidateParameterError struct {
	Bool
}

func (BoolValueWithValidateParameterError) ValidateParameter added in v1.8.0

type DynamicType added in v1.7.0

type DynamicType struct {
	basetypes.DynamicType
}

func (DynamicType) Equal added in v1.7.0

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

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 (DynamicTypeWithSemanticEquals) String added in v1.7.0

func (DynamicTypeWithSemanticEquals) ValueFromDynamic added in v1.7.0

func (DynamicTypeWithSemanticEquals) ValueFromTerraform added in v1.7.0

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

func (DynamicTypeWithSemanticEquals) ValueType added in v1.7.0

type DynamicValue added in v1.7.0

type DynamicValue struct {
	basetypes.DynamicValue
}

func (DynamicValue) Equal added in v1.7.0

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

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 (DynamicValueWithSemanticEquals) Equal added in v1.7.0

func (DynamicValueWithSemanticEquals) Type added in v1.7.0

type Float32Type added in v1.10.0

type Float32Type struct {
	basetypes.Float32Type
}

func (Float32Type) Equal added in v1.10.0

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

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 (Float32TypeWithSemanticEquals) String added in v1.10.0

func (Float32TypeWithSemanticEquals) ValueFromFloat32 added in v1.10.0

func (Float32TypeWithSemanticEquals) ValueFromTerraform added in v1.10.0

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

func (Float32TypeWithSemanticEquals) ValueType added in v1.10.0

type Float32Value added in v1.10.0

type Float32Value struct {
	basetypes.Float32Value
}

func (Float32Value) Equal added in v1.10.0

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

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 (Float32ValueWithSemanticEquals) Float32SemanticEquals added in v1.10.0

func (Float32ValueWithSemanticEquals) Type added in v1.10.0

type Float64Type added in v1.8.0

type Float64Type struct {
	basetypes.Float64Type
}

func (Float64Type) Equal added in v1.8.0

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

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 (Float64TypeWithSemanticEquals) String

func (Float64TypeWithSemanticEquals) ValueFromFloat64

func (Float64TypeWithSemanticEquals) ValueFromTerraform

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

func (Float64TypeWithSemanticEquals) ValueType

type Float64Value added in v1.8.0

type Float64Value struct {
	basetypes.Float64Value
}

func (Float64Value) Equal added in v1.8.0

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

type Float64ValueWithSemanticEquals

type Float64ValueWithSemanticEquals struct {
	basetypes.Float64Value

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (Float64ValueWithSemanticEquals) Equal

func (Float64ValueWithSemanticEquals) Float64SemanticEquals

func (Float64ValueWithSemanticEquals) Type

type Int32Type added in v1.10.0

type Int32Type struct {
	basetypes.Int32Type
}

func (Int32Type) Equal added in v1.10.0

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

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 (Int32TypeWithSemanticEquals) String added in v1.10.0

func (Int32TypeWithSemanticEquals) ValueFromInt32 added in v1.10.0

func (Int32TypeWithSemanticEquals) ValueFromTerraform added in v1.10.0

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

func (Int32TypeWithSemanticEquals) ValueType added in v1.10.0

type Int32Value added in v1.10.0

type Int32Value struct {
	basetypes.Int32Value
}

func (Int32Value) Equal added in v1.10.0

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

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 (Int32ValueWithSemanticEquals) Int32SemanticEquals added in v1.10.0

func (Int32ValueWithSemanticEquals) Type added in v1.10.0

type Int64Type added in v1.8.0

type Int64Type struct {
	basetypes.Int64Type
}

func (Int64Type) Equal added in v1.8.0

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

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 (Int64TypeWithSemanticEquals) String

func (Int64TypeWithSemanticEquals) ValueFromInt64

func (Int64TypeWithSemanticEquals) ValueFromTerraform

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

func (Int64TypeWithSemanticEquals) ValueType

type Int64Value added in v1.8.0

type Int64Value struct {
	basetypes.Int64Value
}

func (Int64Value) Equal added in v1.8.0

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

type Int64ValueWithSemanticEquals

type Int64ValueWithSemanticEquals struct {
	basetypes.Int64Value

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (Int64ValueWithSemanticEquals) Equal

func (Int64ValueWithSemanticEquals) Int64SemanticEquals

func (Int64ValueWithSemanticEquals) Type

type Invalid

type Invalid struct{}

Invalid is an attr.Value that returns errors for methods than can return errors.

func (Invalid) Equal

func (i Invalid) Equal(o attr.Value) bool

func (Invalid) IsNull

func (i Invalid) IsNull() bool

func (Invalid) IsUnknown

func (i Invalid) IsUnknown() bool

func (Invalid) String

func (i Invalid) String() string

func (Invalid) ToTerraformValue

func (i Invalid) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (Invalid) Type

func (i Invalid) Type(_ context.Context) attr.Type

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

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

func (InvalidType) String

func (t InvalidType) String() string

func (InvalidType) TerraformType

func (t InvalidType) TerraformType(_ context.Context) tftypes.Type

func (InvalidType) ValueFromTerraform

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

func (InvalidType) ValueType

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

ValueType returns the Value type.

type ListNestedAttributesCustomTypeType

type ListNestedAttributesCustomTypeType struct {
	types.ListType
}

func (ListNestedAttributesCustomTypeType) ValueFromTerraform

func (tt ListNestedAttributesCustomTypeType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

type ListNestedAttributesCustomValue

type ListNestedAttributesCustomValue struct {
	types.List
}

type ListType

type ListType struct {
	basetypes.ListType
}

func (ListType) Equal added in v1.5.0

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

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 (ListTypeWithSemanticEquals) String

func (ListTypeWithSemanticEquals) ValueFromList

func (ListTypeWithSemanticEquals) ValueFromTerraform

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

func (ListTypeWithSemanticEquals) ValueType

type ListTypeWithValidateAttributeError added in v1.8.0

type ListTypeWithValidateAttributeError struct {
	types.ListType
}

func (ListTypeWithValidateAttributeError) ValueFromTerraform added in v1.8.0

type ListTypeWithValidateAttributeWarning added in v1.8.0

type ListTypeWithValidateAttributeWarning struct {
	types.ListType
}

func (ListTypeWithValidateAttributeWarning) ValueFromTerraform added in v1.8.0

type ListTypeWithValidateError

type ListTypeWithValidateError struct {
	types.ListType
}

func (ListTypeWithValidateError) Validate

type ListTypeWithValidateWarning

type ListTypeWithValidateWarning struct {
	types.ListType
}

func (ListTypeWithValidateWarning) Validate

type ListValue

type ListValue struct {
	basetypes.ListValue
}

func (ListValue) Equal added in v1.5.0

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

type ListValueWithSemanticEquals

type ListValueWithSemanticEquals struct {
	basetypes.ListValue

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (ListValueWithSemanticEquals) Equal

func (ListValueWithSemanticEquals) ListSemanticEquals

func (ListValueWithSemanticEquals) Type

type ListValueWithValidateAttributeError added in v1.8.0

type ListValueWithValidateAttributeError struct {
	types.List
}

func (ListValueWithValidateAttributeError) ValidateAttribute added in v1.8.0

type ListValueWithValidateAttributeWarning added in v1.8.0

type ListValueWithValidateAttributeWarning struct {
	types.List
}

func (ListValueWithValidateAttributeWarning) Equal added in v1.8.0

func (ListValueWithValidateAttributeWarning) ValidateAttribute added in v1.8.0

type MapNestedAttributesCustomTypeType

type MapNestedAttributesCustomTypeType struct {
	types.MapType
}

func (MapNestedAttributesCustomTypeType) ValueFromTerraform

func (tt MapNestedAttributesCustomTypeType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

type MapNestedAttributesCustomValue

type MapNestedAttributesCustomValue struct {
	types.Map
}

type MapType

type MapType struct {
	basetypes.MapType
}

func (MapType) Equal added in v1.5.0

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

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

func (MapTypeWithSemanticEquals) String

func (t MapTypeWithSemanticEquals) String() string

func (MapTypeWithSemanticEquals) ValueFromMap

func (MapTypeWithSemanticEquals) ValueFromTerraform

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

func (MapTypeWithSemanticEquals) ValueType

type MapTypeWithValidateAttributeError added in v1.8.0

type MapTypeWithValidateAttributeError struct {
	types.MapType
}

func (MapTypeWithValidateAttributeError) ValueFromTerraform added in v1.8.0

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

type MapTypeWithValidateAttributeWarning added in v1.8.0

type MapTypeWithValidateAttributeWarning struct {
	types.MapType
}

func (MapTypeWithValidateAttributeWarning) ValueFromTerraform added in v1.8.0

type MapTypeWithValidateError

type MapTypeWithValidateError struct {
	types.MapType
}

func (MapTypeWithValidateError) Validate

type MapTypeWithValidateWarning

type MapTypeWithValidateWarning struct {
	types.MapType
}

func (MapTypeWithValidateWarning) Validate

type MapValue

type MapValue struct {
	basetypes.MapValue
}

func (MapValue) Equal added in v1.5.0

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

type MapValueWithSemanticEquals

type MapValueWithSemanticEquals struct {
	basetypes.MapValue

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (MapValueWithSemanticEquals) Equal

func (MapValueWithSemanticEquals) MapSemanticEquals

func (MapValueWithSemanticEquals) Type

type MapValueWithValidateAttributeError added in v1.8.0

type MapValueWithValidateAttributeError struct {
	types.Map
}

func (MapValueWithValidateAttributeError) ValidateAttribute added in v1.8.0

type MapValueWithValidateAttributeWarning added in v1.8.0

type MapValueWithValidateAttributeWarning struct {
	types.Map
}

func (MapValueWithValidateAttributeWarning) Equal added in v1.8.0

func (MapValueWithValidateAttributeWarning) ValidateAttribute added in v1.8.0

type Number

type Number struct {
	types.Number

	CreatedBy attr.Type
}

func (Number) Equal

func (n Number) Equal(o attr.Value) bool

func (Number) IsNull

func (n Number) IsNull() bool

func (Number) IsUnknown

func (n Number) IsUnknown() bool

func (Number) Type

func (n Number) Type(_ context.Context) attr.Type

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

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

func (NumberType) String

func (t NumberType) String() string

func (NumberType) TerraformType

func (t NumberType) TerraformType(_ context.Context) tftypes.Type

func (NumberType) ValueFromNumber

func (NumberType) ValueFromTerraform

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

func (NumberType) ValueType

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

ValueType returns the Value type.

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 (NumberTypeWithSemanticEquals) String

func (NumberTypeWithSemanticEquals) ValueFromNumber

func (NumberTypeWithSemanticEquals) ValueFromTerraform

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

func (NumberTypeWithSemanticEquals) ValueType

type NumberTypeWithValidateAttributeError added in v1.8.0

type NumberTypeWithValidateAttributeError struct {
	NumberType
}

func (NumberTypeWithValidateAttributeError) Equal added in v1.8.0

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 (NumberTypeWithValidateAttributeWarning) ValueFromTerraform added in v1.8.0

type NumberTypeWithValidateError

type NumberTypeWithValidateError struct {
	NumberType
}

func (NumberTypeWithValidateError) Validate

func (NumberTypeWithValidateError) ValueFromTerraform

func (n NumberTypeWithValidateError) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type NumberTypeWithValidateWarning

type NumberTypeWithValidateWarning struct {
	NumberType
}

func (NumberTypeWithValidateWarning) Validate

func (NumberTypeWithValidateWarning) ValueFromTerraform

func (n NumberTypeWithValidateWarning) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type NumberValueWithSemanticEquals

type NumberValueWithSemanticEquals struct {
	basetypes.NumberValue

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (NumberValueWithSemanticEquals) Equal

func (NumberValueWithSemanticEquals) NumberSemanticEquals

func (NumberValueWithSemanticEquals) Type

type NumberValueWithValidateAttributeError added in v1.8.0

type NumberValueWithValidateAttributeError struct {
	InternalNumber Number
}

func (NumberValueWithValidateAttributeError) Equal added in v1.8.0

func (NumberValueWithValidateAttributeError) IsNull added in v1.8.0

func (NumberValueWithValidateAttributeError) IsUnknown added in v1.8.0

func (NumberValueWithValidateAttributeError) String added in v1.8.0

func (NumberValueWithValidateAttributeError) ToTerraformValue added in v1.8.0

func (NumberValueWithValidateAttributeError) Type added in v1.8.0

func (NumberValueWithValidateAttributeError) ValidateAttribute added in v1.8.0

type NumberValueWithValidateAttributeWarning added in v1.8.0

type NumberValueWithValidateAttributeWarning struct {
	InternalNumber Number
}

func (NumberValueWithValidateAttributeWarning) Equal added in v1.8.0

func (NumberValueWithValidateAttributeWarning) IsNull added in v1.8.0

func (NumberValueWithValidateAttributeWarning) IsUnknown added in v1.8.0

func (NumberValueWithValidateAttributeWarning) String added in v1.8.0

func (NumberValueWithValidateAttributeWarning) ToTerraformValue added in v1.8.0

func (NumberValueWithValidateAttributeWarning) Type added in v1.8.0

func (NumberValueWithValidateAttributeWarning) ValidateAttribute added in v1.8.0

type ObjectType

type ObjectType struct {
	basetypes.ObjectType
}

func (ObjectType) Equal added in v1.5.0

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

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 (ObjectTypeWithSemanticEquals) String

func (ObjectTypeWithSemanticEquals) ValueFromObject

func (ObjectTypeWithSemanticEquals) ValueFromTerraform

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

func (ObjectTypeWithSemanticEquals) ValueType

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
}

func (ObjectTypeWithValidateError) Validate added in v1.8.0

type ObjectTypeWithValidateWarning added in v1.8.0

type ObjectTypeWithValidateWarning struct {
	types.ObjectType
}

func (ObjectTypeWithValidateWarning) Validate added in v1.8.0

type ObjectValue

type ObjectValue struct {
	basetypes.ObjectValue
}

func (ObjectValue) Equal added in v1.5.0

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

type ObjectValueWithSemanticEquals

type ObjectValueWithSemanticEquals struct {
	basetypes.ObjectValue

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (ObjectValueWithSemanticEquals) Equal

func (ObjectValueWithSemanticEquals) ObjectSemanticEquals

func (ObjectValueWithSemanticEquals) Type

type ObjectValueWithValidateAttributeError added in v1.8.0

type ObjectValueWithValidateAttributeError struct {
	types.Object
}

func (ObjectValueWithValidateAttributeError) ValidateAttribute added in v1.8.0

type ObjectValueWithValidateAttributeWarning added in v1.8.0

type ObjectValueWithValidateAttributeWarning struct {
	types.Object
}

func (ObjectValueWithValidateAttributeWarning) Equal added in v1.8.0

func (ObjectValueWithValidateAttributeWarning) ValidateAttribute added in v1.8.0

type SetNestedAttributesCustomTypeType

type SetNestedAttributesCustomTypeType struct {
	types.SetType
}

func (SetNestedAttributesCustomTypeType) ValueFromTerraform

func (tt SetNestedAttributesCustomTypeType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

type SetNestedAttributesCustomValue

type SetNestedAttributesCustomValue struct {
	types.Set
}

type SetType

type SetType struct {
	basetypes.SetType
}

func (SetType) Equal added in v1.5.0

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

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

func (SetTypeWithSemanticEquals) String

func (t SetTypeWithSemanticEquals) String() string

func (SetTypeWithSemanticEquals) ValueFromSet

func (SetTypeWithSemanticEquals) ValueFromTerraform

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

func (SetTypeWithSemanticEquals) ValueType

type SetTypeWithValidateAttributeError added in v1.8.0

type SetTypeWithValidateAttributeError struct {
	types.SetType
}

func (SetTypeWithValidateAttributeError) ValueFromTerraform added in v1.8.0

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

type SetTypeWithValidateAttributeWarning added in v1.8.0

type SetTypeWithValidateAttributeWarning struct {
	types.SetType
}

func (SetTypeWithValidateAttributeWarning) ValueFromTerraform added in v1.8.0

type SetTypeWithValidateError

type SetTypeWithValidateError struct {
	types.SetType
}

func (SetTypeWithValidateError) Validate

type SetTypeWithValidateWarning

type SetTypeWithValidateWarning struct {
	types.SetType
}

func (SetTypeWithValidateWarning) Validate

type SetValue

type SetValue struct {
	basetypes.SetValue
}

func (SetValue) Equal added in v1.5.0

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

type SetValueWithSemanticEquals

type SetValueWithSemanticEquals struct {
	basetypes.SetValue

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (SetValueWithSemanticEquals) Equal

func (SetValueWithSemanticEquals) SetSemanticEquals

func (SetValueWithSemanticEquals) Type

type SetValueWithValidateAttributeError added in v1.8.0

type SetValueWithValidateAttributeError struct {
	types.Set
}

func (SetValueWithValidateAttributeError) ValidateAttribute added in v1.8.0

type SetValueWithValidateAttributeWarning added in v1.8.0

type SetValueWithValidateAttributeWarning struct {
	types.Set
}

func (SetValueWithValidateAttributeWarning) ValidateAttribute added in v1.8.0

type SingleNestedAttributesCustomTypeType

type SingleNestedAttributesCustomTypeType struct {
	types.ObjectType
}

func (SingleNestedAttributesCustomTypeType) ValueFromTerraform

func (tt SingleNestedAttributesCustomTypeType) ValueFromTerraform(ctx context.Context, value tftypes.Value) (attr.Value, error)

type SingleNestedAttributesCustomValue

type SingleNestedAttributesCustomValue struct {
	types.Object
}

type String

type String struct {
	InternalString types.String

	CreatedBy attr.Type
}

func (String) Equal

func (s String) Equal(o attr.Value) bool

func (String) IsNull

func (s String) IsNull() bool

func (String) IsUnknown

func (s String) IsUnknown() bool

func (String) String

func (s String) String() string

func (String) ToStringValue

func (s String) ToStringValue(ctx context.Context) (types.String, diag.Diagnostics)

func (String) ToTerraformValue

func (s String) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (String) Type

func (s String) Type(_ context.Context) attr.Type

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

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

func (StringType) String

func (t StringType) String() string

func (StringType) TerraformType

func (t StringType) TerraformType(_ context.Context) tftypes.Type

func (StringType) ValueFromString

func (StringType) ValueFromTerraform

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

func (StringType) ValueType

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

ValueType returns the Value type.

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 (StringTypeWithSemanticEquals) String

func (StringTypeWithSemanticEquals) ValueFromString

func (StringTypeWithSemanticEquals) ValueFromTerraform

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

func (StringTypeWithSemanticEquals) ValueType

type StringTypeWithValidateAttributeError added in v1.8.0

type StringTypeWithValidateAttributeError struct {
	StringType
}

func (StringTypeWithValidateAttributeError) Equal added in v1.8.0

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 (StringTypeWithValidateAttributeWarning) ValueFromTerraform added in v1.8.0

type StringTypeWithValidateError

type StringTypeWithValidateError struct {
	StringType
}

func (StringTypeWithValidateError) Equal

func (StringTypeWithValidateError) Validate

func (StringTypeWithValidateError) ValueFromTerraform

func (s StringTypeWithValidateError) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type StringTypeWithValidateParameterError added in v1.8.0

type StringTypeWithValidateParameterError struct {
	StringType
}

func (StringTypeWithValidateParameterError) Equal added in v1.8.0

func (StringTypeWithValidateParameterError) ValueFromTerraform added in v1.8.0

type StringTypeWithValidateWarning

type StringTypeWithValidateWarning struct {
	StringType
}

func (StringTypeWithValidateWarning) Equal

func (StringTypeWithValidateWarning) Validate

func (StringTypeWithValidateWarning) ValueFromTerraform

func (s StringTypeWithValidateWarning) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type StringValueWithSemanticEquals

type StringValueWithSemanticEquals struct {
	basetypes.StringValue

	SemanticEquals            bool
	SemanticEqualsDiagnostics diag.Diagnostics
}

func (StringValueWithSemanticEquals) Equal

func (StringValueWithSemanticEquals) StringSemanticEquals

func (StringValueWithSemanticEquals) Type

type StringValueWithValidateAttributeError added in v1.8.0

type StringValueWithValidateAttributeError struct {
	InternalString String
}

func (StringValueWithValidateAttributeError) Equal added in v1.8.0

func (StringValueWithValidateAttributeError) IsNull added in v1.8.0

func (StringValueWithValidateAttributeError) IsUnknown added in v1.8.0

func (StringValueWithValidateAttributeError) String added in v1.8.0

func (StringValueWithValidateAttributeError) ToTerraformValue added in v1.8.0

func (StringValueWithValidateAttributeError) Type added in v1.8.0

func (StringValueWithValidateAttributeError) ValidateAttribute added in v1.8.0

type StringValueWithValidateAttributeWarning added in v1.8.0

type StringValueWithValidateAttributeWarning struct {
	InternalString String
}

func (StringValueWithValidateAttributeWarning) Equal added in v1.8.0

func (StringValueWithValidateAttributeWarning) IsNull added in v1.8.0

func (StringValueWithValidateAttributeWarning) IsUnknown added in v1.8.0

func (StringValueWithValidateAttributeWarning) String added in v1.8.0

func (StringValueWithValidateAttributeWarning) ToTerraformValue added in v1.8.0

func (StringValueWithValidateAttributeWarning) Type added in v1.8.0

func (StringValueWithValidateAttributeWarning) ValidateAttribute added in v1.8.0

type StringValueWithValidateParameterError added in v1.8.0

type StringValueWithValidateParameterError struct {
	InternalString String
}

func (StringValueWithValidateParameterError) Equal added in v1.8.0

func (StringValueWithValidateParameterError) IsNull added in v1.8.0

func (StringValueWithValidateParameterError) IsUnknown added in v1.8.0

func (StringValueWithValidateParameterError) String added in v1.8.0

func (StringValueWithValidateParameterError) ToTerraformValue added in v1.8.0

func (StringValueWithValidateParameterError) Type added in v1.8.0

func (StringValueWithValidateParameterError) ValidateParameter added in v1.8.0

Jump to

Keyboard shortcuts

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