types

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTfListNestedType

func NewTfListNestedType[T attr.Value](ctx context.Context) tfListNestedType[T]

func NewTfMapNestedType

func NewTfMapNestedType[T attr.Value](ctx context.Context) tfMapNestedType[T]

Types

type TfBoolType

type TfBoolType struct {
	basetypes.BoolType
}

func (TfBoolType) Equal

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

func (TfBoolType) String

func (t TfBoolType) String() string

func (TfBoolType) ValueFromBool

func (TfBoolType) ValueFromTerraform

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

func (TfBoolType) ValueType

func (t TfBoolType) ValueType(ctx context.Context) attr.Value

type TfBoolValue

type TfBoolValue struct {
	basetypes.BoolValue
}

func (TfBoolValue) Equal

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

func (TfBoolValue) MarshalJSON

func (t TfBoolValue) MarshalJSON() ([]byte, error)

func (TfBoolValue) Type

func (v TfBoolValue) Type(ctx context.Context) attr.Type

func (*TfBoolValue) UnmarshalJSON

func (t *TfBoolValue) UnmarshalJSON(data []byte) error

type TfInt64Type

type TfInt64Type struct {
	basetypes.Int64Type
}

func (TfInt64Type) Equal

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

func (TfInt64Type) String

func (t TfInt64Type) String() string

func (TfInt64Type) ValueFromInt64

func (TfInt64Type) ValueFromTerraform

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

func (TfInt64Type) ValueType

func (t TfInt64Type) ValueType(ctx context.Context) attr.Value

type TfInt64Value

type TfInt64Value struct {
	basetypes.Int64Value
}

func (TfInt64Value) MarshalJSON

func (t TfInt64Value) MarshalJSON() ([]byte, error)

func (TfInt64Value) Type

func (v TfInt64Value) Type(ctx context.Context) attr.Type

func (*TfInt64Value) UnmarshalJSON

func (t *TfInt64Value) UnmarshalJSON(data []byte) error

type TfListNestedValue

type TfListNestedValue[T attr.Value] struct {
	basetypes.ListValue
}

TfListNestedValue represents a Terraform Plugin Framework List value`.

func NewListNestedObjectValueOfNull

func NewListNestedObjectValueOfNull[T attr.Value](ctx context.Context) TfListNestedValue[T]

func NewListNestedObjectValueOfUnknown

func NewListNestedObjectValueOfUnknown[T attr.Value](ctx context.Context) TfListNestedValue[T]

func (TfListNestedValue[T]) ElementType

func (t TfListNestedValue[T]) ElementType(ctx context.Context) attr.Type

func (TfListNestedValue[T]) Equal

func (v TfListNestedValue[T]) Equal(o attr.Value) bool

func (TfListNestedValue[T]) MarshalJSON

func (t TfListNestedValue[T]) MarshalJSON() ([]byte, error)

func (TfListNestedValue[T]) ToListValue

func (TfListNestedValue[T]) ToSetValue

func (TfListNestedValue[T]) ToTerraformValue

func (t TfListNestedValue[T]) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (TfListNestedValue[T]) Type

func (v TfListNestedValue[T]) Type(ctx context.Context) attr.Type

func (*TfListNestedValue[T]) UnmarshalJSON

func (t *TfListNestedValue[T]) UnmarshalJSON(data []byte) error

type TfMapNestedValue

type TfMapNestedValue[T attr.Value] struct {
	basetypes.MapValue
}

func NewNullTfMapNestedValue

func NewNullTfMapNestedValue[T attr.Value](ctx context.Context) TfMapNestedValue[T]

func NewTfMapNestedValue

func NewTfMapNestedValue[T attr.Value](ctx context.Context, elements map[string]attr.Value) (TfMapNestedValue[T], diag.Diagnostics)

func NewTfMapNestedValueMust

func NewTfMapNestedValueMust[T attr.Value](ctx context.Context, elements map[string]attr.Value) TfMapNestedValue[T]

func NewUnknownTfMapNestedValue

func NewUnknownTfMapNestedValue[T attr.Value](ctx context.Context) TfMapNestedValue[T]

func (TfMapNestedValue[T]) Equal

func (v TfMapNestedValue[T]) Equal(o attr.Value) bool

func (TfMapNestedValue[T]) ToTerraformValue

func (v TfMapNestedValue[T]) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

ToTerraformValue returns the data contained in the Map as a tftypes.Value.

func (TfMapNestedValue[T]) Type

func (v TfMapNestedValue[T]) Type(ctx context.Context) attr.Type

func (*TfMapNestedValue[T]) UnmarshalJSON

func (v *TfMapNestedValue[T]) UnmarshalJSON(data []byte) error

type TfNumberType

type TfNumberType struct {
	basetypes.NumberType
}

func (TfNumberType) Equal

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

func (TfNumberType) String

func (t TfNumberType) String() string

func (TfNumberType) ValueFromNumber

func (TfNumberType) ValueFromTerraform

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

func (TfNumberType) ValueType

func (t TfNumberType) ValueType(ctx context.Context) attr.Value

type TfNumberValue

type TfNumberValue struct {
	basetypes.NumberValue
}

func (TfNumberValue) MarshalJSON

func (t TfNumberValue) MarshalJSON() ([]byte, error)

func (TfNumberValue) ToNumberValue

func (TfNumberValue) Type

func (v TfNumberValue) Type(ctx context.Context) attr.Type

func (*TfNumberValue) UnmarshalJSON

func (t *TfNumberValue) UnmarshalJSON(data []byte) error

type TfStringType

type TfStringType struct {
	basetypes.StringType
}

func (TfStringType) Equal

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

func (TfStringType) String

func (t TfStringType) String() string

func (TfStringType) ValueFromString

func (TfStringType) ValueFromTerraform

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

func (TfStringType) ValueType

func (t TfStringType) ValueType(ctx context.Context) attr.Value

type TfStringValue

type TfStringValue struct {
	basetypes.StringValue
}

func NewTfStringValue added in v0.41.0

func NewTfStringValue(value string) TfStringValue

func (TfStringValue) Equal

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

func (TfStringValue) MarshalJSON

func (t TfStringValue) MarshalJSON() ([]byte, error)

func (TfStringValue) Type

func (v TfStringValue) Type(ctx context.Context) attr.Type

func (*TfStringValue) UnmarshalJSON

func (t *TfStringValue) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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