Documentation ¶
Overview ¶
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
-------------------------------------------------------------------- // ! DO NOT EDIT. This file is auto-generated from template ! // -------------------------------------------------------------------- //
Index ¶
- func AttributeTypes[T any](ctx context.Context) (map[string]attr.Type, error)
- func AttributeTypesMust[T any](ctx context.Context) map[string]attr.Type
- func DiagnosticString(d diag.Diagnostic) string
- func DiagnosticsError(diags diag.Diagnostics) error
- func ElementType[T any](_ context.Context) (attr.Type, error)
- func ElementTypeMust[T any](ctx context.Context) attr.Type
- func Must[T any](x T, err error) T
- func MustDiag[T any](x T, diags diag.Diagnostics) T
- type BoolType
- func (t BoolType) Equal(o attr.Type) bool
- func (t BoolType) String() string
- func (t BoolType) ValueFromBool(_ 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(ctx context.Context) attr.Value
- type BoolValue
- func (v BoolValue) Equal(o attr.Value) bool
- func (v *BoolValue) Get() bool
- func (v *BoolValue) GetPtr() *bool
- func (v BoolValue) IsKnown() bool
- func (v *BoolValue) Set(s bool)
- func (v *BoolValue) SetNull()
- func (v *BoolValue) SetPtr(s *bool)
- func (v *BoolValue) SetUnknown()
- func (v BoolValue) Type(ctx context.Context) attr.Type
- type Float64Type
- func (t Float64Type) Equal(o attr.Type) bool
- func (t Float64Type) String() string
- func (t Float64Type) ValueFromFloat64(_ context.Context, in basetypes.Float64Value) (basetypes.Float64Valuable, diag.Diagnostics)
- func (t Float64Type) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t Float64Type) ValueType(ctx context.Context) attr.Value
- type Float64Value
- func (v Float64Value) Equal(o attr.Value) bool
- func (v *Float64Value) Get() float64
- func (v *Float64Value) GetFloat32() float32
- func (v Float64Value) GetFloat32Ptr() *float32
- func (v Float64Value) GetFloat64() float64
- func (v Float64Value) GetFloat64Ptr() *float64
- func (v *Float64Value) GetPtr() *float64
- func (v Float64Value) IsKnown() bool
- func (v *Float64Value) Set(s float64)
- func (v *Float64Value) SetFloat32(s float32)
- func (v *Float64Value) SetFloat32Ptr(s *float32)
- func (v *Float64Value) SetFloat64(s float64)
- func (v *Float64Value) SetFloat64Ptr(s *float64)
- func (v *Float64Value) SetNull()
- func (v *Float64Value) SetPtr(s *float64)
- func (v *Float64Value) SetUnknown()
- func (v Float64Value) Type(ctx context.Context) attr.Type
- type Int64Type
- func (t Int64Type) Equal(o attr.Type) bool
- func (t Int64Type) String() string
- func (t Int64Type) ValueFromInt64(_ context.Context, in basetypes.Int64Value) (basetypes.Int64Valuable, diag.Diagnostics)
- func (t Int64Type) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t Int64Type) ValueType(ctx context.Context) attr.Value
- type Int64Value
- func (v Int64Value) Equal(o attr.Value) bool
- func (v *Int64Value) Get() int64
- func (v Int64Value) GetInt() int
- func (v Int64Value) GetInt16() int16
- func (v Int64Value) GetInt16Ptr() *int16
- func (v Int64Value) GetInt32() int32
- func (v Int64Value) GetInt32Ptr() *int32
- func (v Int64Value) GetInt64() int64
- func (v Int64Value) GetInt64Ptr() *int64
- func (v Int64Value) GetInt8() int8
- func (v Int64Value) GetInt8Ptr() *int8
- func (v Int64Value) GetIntPtr() *int
- func (v *Int64Value) GetPtr() *int64
- func (v Int64Value) IsKnown() bool
- func (v *Int64Value) Set(s int64)
- func (v *Int64Value) SetInt(s int)
- func (v *Int64Value) SetInt16(s int16)
- func (v *Int64Value) SetInt16Ptr(s *int16)
- func (v *Int64Value) SetInt32(s int32)
- func (v *Int64Value) SetInt32Ptr(s *int32)
- func (v *Int64Value) SetInt64(s int64)
- func (v *Int64Value) SetInt64Ptr(s *int64)
- func (v *Int64Value) SetInt8(s int8)
- func (v *Int64Value) SetInt8Ptr(s *int8)
- func (v *Int64Value) SetIntPtr(s *int)
- func (v *Int64Value) SetNull()
- func (v *Int64Value) SetPtr(s *int64)
- func (v *Int64Value) SetUnknown()
- func (v Int64Value) Type(ctx context.Context) attr.Type
- type ListNestedObjectTypeOf
- func (t ListNestedObjectTypeOf[T]) Equal(o attr.Type) bool
- func (t ListNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
- func (t ListNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics)
- func (t ListNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t ListNestedObjectTypeOf[T]) String() string
- func (t ListNestedObjectTypeOf[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
- func (t ListNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
- func (t ListNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
- func (t ListNestedObjectTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ListNestedObjectTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type ListNestedObjectValueOf
- func NewListNestedObjectValueOfNull[T any](ctx context.Context) ListNestedObjectValueOf[T]
- func NewListNestedObjectValueOfPtr[T any](ctx context.Context, t *T) ListNestedObjectValueOf[T]
- func NewListNestedObjectValueOfSlice[T any](ctx context.Context, ts []*T) ListNestedObjectValueOf[T]
- func NewListNestedObjectValueOfUnknown[T any](ctx context.Context) ListNestedObjectValueOf[T]
- func NewListNestedObjectValueOfValueSlice[T any](ctx context.Context, ts []T) ListNestedObjectValueOf[T]
- func (v ListNestedObjectValueOf[T]) Equal(o attr.Value) bool
- func (v ListNestedObjectValueOf[T]) Get(ctx context.Context) ([]*T, diag.Diagnostics)
- func (v ListNestedObjectValueOf[T]) IsKnown() bool
- func (v *ListNestedObjectValueOf[T]) Set(ctx context.Context, slice []*T) diag.Diagnostics
- func (v *ListNestedObjectValueOf[T]) SetNull(ctx context.Context)
- func (v *ListNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
- func (v ListNestedObjectValueOf[T]) Type(ctx context.Context) attr.Type
- type ListNestedType
- func (t ListNestedType) ElementType() attr.Type
- func (t ListNestedType) Equal(o attr.Type) bool
- func (t ListNestedType) String() string
- func (t ListNestedType) TerraformType(ctx context.Context) tftypes.Type
- func (t ListNestedType) ValueFromList(_ context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
- func (t ListNestedType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- type ListNestedValue
- func (v *ListNestedValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
- func (v ListNestedValue) IsKnown() bool
- func (v *ListNestedValue) Set(ctx context.Context, elements any) diag.Diagnostics
- func (v *ListNestedValue) SetNull(ctx context.Context)
- func (v *ListNestedValue) SetUnknown(ctx context.Context)
- func (v ListNestedValue) ToListValue(_ context.Context) (basetypes.ListValue, diag.Diagnostics)
- func (v ListNestedValue) Type(ctx context.Context) attr.Type
- type ListType
- func (t ListType) ElementType() attr.Type
- func (t ListType) Equal(o attr.Type) bool
- func (t ListType) String() string
- func (t ListType) TerraformType(ctx context.Context) tftypes.Type
- func (t ListType) ValueFromList(_ context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
- func (t ListType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ListType) ValueType(ctx context.Context) attr.Value
- type ListTypeOf
- func (t ListTypeOf[T]) ElementType() attr.Type
- func (t ListTypeOf[T]) Equal(o attr.Type) bool
- func (t ListTypeOf[T]) String() string
- func (t ListTypeOf[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
- func (t ListTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ListTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type ListValue
- func NewListNull(elementType attr.Type) ListValue
- func NewListUnknown(elementType attr.Type) ListValue
- func NewListValue(elementType attr.Type, elements []attr.Value) (ListValue, diag.Diagnostics)
- func NewListValueFrom(ctx context.Context, elementType attr.Type, elements any) (ListValue, diag.Diagnostics)
- func NewListValueMust(elementType attr.Type, elements []attr.Value) ListValue
- func (v ListValue) Equal(o attr.Value) bool
- func (v *ListValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
- func (v ListValue) IsKnown() bool
- func (v *ListValue) Set(ctx context.Context, elements any) diag.Diagnostics
- func (v *ListValue) SetNull(ctx context.Context)
- func (v *ListValue) SetUnknown(ctx context.Context)
- func (v ListValue) ToListValue(_ context.Context) (basetypes.ListValue, diag.Diagnostics)
- func (v ListValue) Type(ctx context.Context) attr.Type
- type ListValueOf
- func NewListValueOfNull[T any](ctx context.Context) ListValueOf[T]
- func NewListValueOfSlice[T any](ctx context.Context, elements []T) ListValueOf[T]
- func NewListValueOfSlicePtr[T any](ctx context.Context, elements []*T) ListValueOf[T]
- func NewListValueOfUnknown[T any](ctx context.Context) ListValueOf[T]
- func (v ListValueOf[T]) Equal(o attr.Value) bool
- func (v ListValueOf[T]) Get(ctx context.Context) (values []T, diags diag.Diagnostics)
- func (v ListValueOf[T]) IsKnown() bool
- func (v *ListValueOf[T]) Set(ctx context.Context, elements []T) diag.Diagnostics
- func (v *ListValueOf[T]) SetNull(ctx context.Context)
- func (v *ListValueOf[T]) SetUnknown(ctx context.Context)
- func (v ListValueOf[T]) ToListValue(_ context.Context) (basetypes.ListValue, diag.Diagnostics)
- func (v ListValueOf[T]) Type(ctx context.Context) attr.Type
- type MapNestedObjectTypeOf
- func (t MapNestedObjectTypeOf[T]) Equal(o attr.Type) bool
- func (t MapNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
- func (t MapNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, _, _ int) (any, diag.Diagnostics)
- func (t MapNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t MapNestedObjectTypeOf[T]) String() string
- func (t MapNestedObjectTypeOf[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
- func (t MapNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
- func (t MapNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
- func (t MapNestedObjectTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t MapNestedObjectTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type MapNestedObjectValueOf
- func NewMapNestedObjectValueOfMap[T any](ctx context.Context, m map[string]*T) MapNestedObjectValueOf[T]
- func NewMapNestedObjectValueOfNull[T any](ctx context.Context) MapNestedObjectValueOf[T]
- func NewMapNestedObjectValueOfPtr[T any](ctx context.Context, m map[string]*T) MapNestedObjectValueOf[T]
- func NewMapNestedObjectValueOfUnknown[T any](ctx context.Context) MapNestedObjectValueOf[T]
- func NewMapNestedObjectValueOfValueMap[T any](ctx context.Context, m map[string]T) MapNestedObjectValueOf[T]
- func (v MapNestedObjectValueOf[T]) Equal(o attr.Value) bool
- func (v MapNestedObjectValueOf[T]) Get(ctx context.Context) (map[string]*T, diag.Diagnostics)
- func (v MapNestedObjectValueOf[T]) IsKnown() bool
- func (v *MapNestedObjectValueOf[T]) Set(ctx context.Context, m map[string]*T) diag.Diagnostics
- func (v *MapNestedObjectValueOf[T]) SetNull(ctx context.Context)
- func (v *MapNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
- func (v MapNestedObjectValueOf[T]) Type(ctx context.Context) attr.Type
- type MapNestedType
- func (t MapNestedType) ElementType() attr.Type
- func (t MapNestedType) Equal(o attr.Type) bool
- func (t MapNestedType) String() string
- func (t MapNestedType) TerraformType(ctx context.Context) tftypes.Type
- func (t MapNestedType) ValueFromMap(_ context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
- func (t MapNestedType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- type MapNestedValue
- func (v *MapNestedValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
- func (v MapNestedValue) IsKnown() bool
- func (v *MapNestedValue) Set(ctx context.Context, elements any) diag.Diagnostics
- func (v *MapNestedValue) SetNull(ctx context.Context)
- func (v *MapNestedValue) SetUnknown(ctx context.Context)
- func (v MapNestedValue) ToMapValue(_ context.Context) (basetypes.MapValue, diag.Diagnostics)
- func (v MapNestedValue) Type(ctx context.Context) attr.Type
- type MapType
- func (t MapType) ElementType() attr.Type
- func (t MapType) Equal(o attr.Type) bool
- func (t MapType) String() string
- func (t MapType) TerraformType(ctx context.Context) tftypes.Type
- func (t MapType) ValueFromMap(_ context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
- func (t MapType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t MapType) ValueType(ctx context.Context) attr.Value
- type MapTypeOf
- func (t MapTypeOf[T]) ElementType() attr.Type
- func (t MapTypeOf[T]) Equal(o attr.Type) bool
- func (t MapTypeOf[T]) String() string
- func (t MapTypeOf[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
- func (t MapTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t MapTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type MapValue
- func NewMapNull(elementType attr.Type) MapValue
- func NewMapUnknown(elementType attr.Type) MapValue
- func NewMapValue(elementType attr.Type, elements map[string]attr.Value) (MapValue, diag.Diagnostics)
- func NewMapValueFrom(ctx context.Context, elementType attr.Type, elements any) (MapValue, diag.Diagnostics)
- func NewMapValueMust(elementType attr.Type, elements map[string]attr.Value) MapValue
- func (v MapValue) Equal(o attr.Value) bool
- func (v *MapValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
- func (v MapValue) IsKnown() bool
- func (v *MapValue) Set(ctx context.Context, elements any) diag.Diagnostics
- func (v *MapValue) SetNull(ctx context.Context)
- func (v *MapValue) SetUnknown(ctx context.Context)
- func (v MapValue) ToMapValue(_ context.Context) (basetypes.MapValue, diag.Diagnostics)
- func (v MapValue) Type(ctx context.Context) attr.Type
- type MapValueOf
- func (v MapValueOf[T]) Equal(o attr.Value) bool
- func (v MapValueOf[T]) Get(ctx context.Context) (values map[string]T, diags diag.Diagnostics)
- func (v MapValueOf[T]) IsKnown() bool
- func (v *MapValueOf[T]) Set(ctx context.Context, elements map[string]T) diag.Diagnostics
- func (v *MapValueOf[T]) SetNull(ctx context.Context)
- func (v *MapValueOf[T]) SetUnknown(ctx context.Context)
- func (v MapValueOf[T]) ToMapValue(_ context.Context) (basetypes.MapValue, diag.Diagnostics)
- func (v MapValueOf[T]) Type(ctx context.Context) attr.Type
- type NestedObjectType
- type NestedObjectValue
- type NumberType
- func (t NumberType) Equal(o attr.Type) bool
- func (t NumberType) String() string
- func (t NumberType) ValueFromNumber(_ 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(ctx context.Context) attr.Value
- type NumberValue
- type ObjectType
- func (t ObjectType) Equal(o attr.Type) bool
- func (t ObjectType) String() string
- func (t ObjectType) ValueFromObject(_ context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t ObjectType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ObjectType) ValueType(_ context.Context) attr.Value
- type ObjectTypeOf
- func (t ObjectTypeOf[T]) Equal(o attr.Type) bool
- func (t ObjectTypeOf[T]) String() string
- func (t ObjectTypeOf[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t ObjectTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ObjectTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type ObjectValue
- func (v ObjectValue) Equal(o attr.Value) bool
- func (v *ObjectValue) Get(ctx context.Context, target interface{}, opts basetypes.ObjectAsOptions) diag.Diagnostics
- func (v ObjectValue) IsKnown() bool
- func (v *ObjectValue) Set(ctx context.Context, structure any) diag.Diagnostics
- func (v *ObjectValue) SetNull(ctx context.Context)
- func (v *ObjectValue) SetUnknown(ctx context.Context)
- func (v ObjectValue) Type(_ context.Context) attr.Type
- type ObjectValueOf
- func (v ObjectValueOf[T]) Equal(o attr.Value) bool
- func (v ObjectValueOf[T]) Get(ctx context.Context) (*T, diag.Diagnostics)
- func (v ObjectValueOf[T]) IsKnown() bool
- func (v *ObjectValueOf[T]) Set(ctx context.Context, t *T) (diags diag.Diagnostics)
- func (v *ObjectValueOf[T]) SetNull(ctx context.Context)
- func (v *ObjectValueOf[T]) SetUnknown(ctx context.Context)
- func (v ObjectValueOf[T]) Type(ctx context.Context) attr.Type
- type SetNestedObjectTypeOf
- func (t SetNestedObjectTypeOf[T]) Equal(o attr.Type) bool
- func (t SetNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
- func (t SetNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics)
- func (t SetNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t SetNestedObjectTypeOf[T]) String() string
- func (t SetNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
- func (t SetNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
- func (t SetNestedObjectTypeOf[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
- func (t SetNestedObjectTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SetNestedObjectTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type SetNestedObjectValueOf
- func NewSetNestedObjectValueOfNull[T any](ctx context.Context) SetNestedObjectValueOf[T]
- func NewSetNestedObjectValueOfPtr[T any](ctx context.Context, t *T) SetNestedObjectValueOf[T]
- func NewSetNestedObjectValueOfSlice[T any](ctx context.Context, ts []*T) SetNestedObjectValueOf[T]
- func NewSetNestedObjectValueOfUnknown[T any](ctx context.Context) SetNestedObjectValueOf[T]
- func NewSetNestedObjectValueOfValueSlice[T any](ctx context.Context, ts []T) SetNestedObjectValueOf[T]
- func (v SetNestedObjectValueOf[T]) Equal(o attr.Value) bool
- func (v SetNestedObjectValueOf[T]) Get(ctx context.Context) ([]*T, diag.Diagnostics)
- func (v SetNestedObjectValueOf[T]) IsKnown() bool
- func (v *SetNestedObjectValueOf[T]) Set(ctx context.Context, slice []*T) diag.Diagnostics
- func (v *SetNestedObjectValueOf[T]) SetNull(ctx context.Context)
- func (v *SetNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
- func (v SetNestedObjectValueOf[T]) Type(ctx context.Context) attr.Type
- type SetNestedType
- func (t SetNestedType) ElementType() attr.Type
- func (t SetNestedType) Equal(o attr.Type) bool
- func (t SetNestedType) String() string
- func (t SetNestedType) TerraformType(ctx context.Context) tftypes.Type
- func (t SetNestedType) ValueFromSet(_ context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
- func (t SetNestedType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- type SetNestedValue
- func (v *SetNestedValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
- func (v SetNestedValue) IsKnown() bool
- func (v *SetNestedValue) Set(ctx context.Context, elements any) diag.Diagnostics
- func (v *SetNestedValue) SetNull(ctx context.Context)
- func (v *SetNestedValue) SetUnknown(ctx context.Context)
- func (v SetNestedValue) ToSetValue(_ context.Context) (basetypes.SetValue, diag.Diagnostics)
- func (v SetNestedValue) Type(ctx context.Context) attr.Type
- type SetType
- func (t SetType) ElementType() attr.Type
- func (t SetType) Equal(o attr.Type) bool
- func (t SetType) String() string
- func (t SetType) TerraformType(ctx context.Context) tftypes.Type
- func (t SetType) ValueFromSet(_ context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
- func (t SetType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SetType) ValueType(ctx context.Context) attr.Value
- type SetTypeOf
- func (t SetTypeOf[T]) ElementType() attr.Type
- func (t SetTypeOf[T]) Equal(o attr.Type) bool
- func (t SetTypeOf[T]) String() string
- func (t SetTypeOf[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
- func (t SetTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SetTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type SetValue
- func NewSetNull(elementType attr.Type) SetValue
- func NewSetUnknown(elementType attr.Type) SetValue
- func NewSetValue(elementType attr.Type, elements []attr.Value) (SetValue, diag.Diagnostics)
- func NewSetValueFrom(ctx context.Context, elementType attr.Type, elements any) (SetValue, diag.Diagnostics)
- func NewSetValueMust(elementType attr.Type, elements []attr.Value) SetValue
- func (v SetValue) Equal(o attr.Value) bool
- func (v *SetValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
- func (v SetValue) IsKnown() bool
- func (v *SetValue) Set(ctx context.Context, elements any) diag.Diagnostics
- func (v *SetValue) SetNull(ctx context.Context)
- func (v *SetValue) SetUnknown(ctx context.Context)
- func (v SetValue) ToSetValue(_ context.Context) (basetypes.SetValue, diag.Diagnostics)
- func (v SetValue) Type(ctx context.Context) attr.Type
- type SetValueOf
- func (v SetValueOf[T]) Equal(o attr.Value) bool
- func (v SetValueOf[T]) Get(ctx context.Context) (values []T, diags diag.Diagnostics)
- func (v SetValueOf[T]) IsKnown() bool
- func (v *SetValueOf[T]) Set(ctx context.Context, elements []T) diag.Diagnostics
- func (v *SetValueOf[T]) SetNull(ctx context.Context)
- func (v *SetValueOf[T]) SetUnknown(ctx context.Context)
- func (v SetValueOf[T]) ToSetValue(_ context.Context) (basetypes.SetValue, diag.Diagnostics)
- func (v SetValueOf[T]) Type(ctx context.Context) attr.Type
- type SingleNestedObjectTypeOf
- func (t SingleNestedObjectTypeOf[T]) Equal(o attr.Type) bool
- func (t SingleNestedObjectTypeOf[T]) String() string
- func (t SingleNestedObjectTypeOf[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t SingleNestedObjectTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SingleNestedObjectTypeOf[T]) ValueType(ctx context.Context) attr.Value
- type SingleNestedObjectValueOf
- func (v SingleNestedObjectValueOf[T]) Equal(o attr.Value) bool
- func (v SingleNestedObjectValueOf[T]) Get(ctx context.Context) (*T, diag.Diagnostics)
- func (v SingleNestedObjectValueOf[T]) IsKnown() bool
- func (v *SingleNestedObjectValueOf[T]) Set(ctx context.Context, t *T) (diags diag.Diagnostics)
- func (v *SingleNestedObjectValueOf[T]) SetNull(ctx context.Context)
- func (v *SingleNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
- func (v SingleNestedObjectValueOf[T]) Type(ctx context.Context) attr.Type
- type SingleNestedType
- func (t SingleNestedType) Equal(o attr.Type) bool
- func (t SingleNestedType) String() string
- func (t SingleNestedType) ValueFromObject(_ context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t SingleNestedType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- type SingleNestedValue
- func (v *SingleNestedValue) Get(ctx context.Context, target interface{}, opts basetypes.ObjectAsOptions) (diag diag.Diagnostics)
- func (v SingleNestedValue) IsKnown() bool
- func (v *SingleNestedValue) Set(ctx context.Context, structure any) diag.Diagnostics
- func (v *SingleNestedValue) SetNull(ctx context.Context)
- func (v *SingleNestedValue) SetUnknown(ctx context.Context)
- func (v SingleNestedValue) ToObjectValue(_ context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v SingleNestedValue) Type(ctx context.Context) attr.Type
- type StringType
- func (t StringType) Equal(o attr.Type) bool
- func (t StringType) String() string
- func (t StringType) ValueFromString(_ 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(ctx context.Context) attr.Value
- type StringValue
- func (v StringValue) Equal(o attr.Value) bool
- func (v *StringValue) Get() string
- func (v *StringValue) GetPtr() *string
- func (v StringValue) IsKnown() bool
- func (v *StringValue) Set(s string)
- func (v *StringValue) SetNull()
- func (v *StringValue) SetPtr(s *string)
- func (v *StringValue) SetUnknown()
- func (v StringValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeTypes ¶ added in v0.2.0
AttributeTypes returns a map of attribute types for the specified type T. T must be a struct and reflection is used to find exported fields of T with the `tfsdk` tag.
func AttributeTypesMust ¶ added in v0.2.0
func DiagnosticString ¶ added in v0.2.0
func DiagnosticString(d diag.Diagnostic) string
DiagnosticString formats a Diagnostic If there is no `Detail`, only prints summary, otherwise prints both
func DiagnosticsError ¶ added in v0.2.0
func DiagnosticsError(diags diag.Diagnostics) error
DiagnosticsError returns an error containing all Diagnostic with SeverityError
func ElementType ¶ added in v0.3.0
ElementType returns the element type of the specified type T. T must be a slice or map and reflection is used to find the element type.
func Must ¶ added in v0.2.0
Must is a generic implementation of the Go Must idiom [1, 2]. It panics if the provided error is non-nil and returns x otherwise.
func MustDiag ¶ added in v0.2.0
func MustDiag[T any](x T, diags diag.Diagnostics) T
MustDiag is a generic implementation of the Go Must idiom [1, 2]. It panics if the provided Diagnostics has errors and returns x otherwise.
Types ¶
type BoolType ¶
func (BoolType) ValueFromBool ¶
func (t BoolType) ValueFromBool(_ context.Context, in basetypes.BoolValue) (basetypes.BoolValuable, diag.Diagnostics)
func (BoolType) ValueFromTerraform ¶
type BoolValue ¶
func NewBoolNull ¶ added in v0.0.3
func NewBoolNull() BoolValue
func NewBoolPointerValue ¶ added in v0.0.3
func NewBoolUnknown ¶ added in v0.0.3
func NewBoolUnknown() BoolValue
func NewBoolValue ¶ added in v0.0.3
func (*BoolValue) Get ¶
Get returns the known Bool value. If Bool is null or unknown, returns false.
func (*BoolValue) GetPtr ¶ added in v0.0.3
GetPtr returns a pointer to the known int64 value, nil for a null value, or a pointer to 0 for an unknown value.
func (*BoolValue) SetUnknown ¶
func (v *BoolValue) SetUnknown()
SetUnknown sets the Bool value to unknown.
type Float64Type ¶
type Float64Type struct {
basetypes.Float64Type
}
func (Float64Type) String ¶
func (t Float64Type) String() string
func (Float64Type) ValueFromFloat64 ¶
func (t Float64Type) ValueFromFloat64(_ context.Context, in basetypes.Float64Value) (basetypes.Float64Valuable, diag.Diagnostics)
func (Float64Type) ValueFromTerraform ¶
type Float64Value ¶
type Float64Value struct {
basetypes.Float64Value
}
func NewFloat64Null ¶ added in v0.0.3
func NewFloat64Null() Float64Value
func NewFloat64PointerValue ¶ added in v0.0.3
func NewFloat64PointerValue(s *float64) Float64Value
func NewFloat64Unknown ¶ added in v0.0.3
func NewFloat64Unknown() Float64Value
func NewFloat64Value ¶ added in v0.0.3
func NewFloat64Value(s float64) Float64Value
func (*Float64Value) Get ¶
func (v *Float64Value) Get() float64
Get returns the known Float64 value. If Float64 is null or unknown, returns 0.0.
func (*Float64Value) GetFloat32 ¶ added in v0.1.0
func (v *Float64Value) GetFloat32() float32
GetFloat32 returns converted float64 to float32 value.
func (Float64Value) GetFloat32Ptr ¶ added in v0.1.0
func (v Float64Value) GetFloat32Ptr() *float32
GetFloat32Ptr returns a converted float64 to float32 pointer. If the value is null or unknown, nil is returned.
func (Float64Value) GetFloat64 ¶ added in v0.1.0
func (v Float64Value) GetFloat64() float64
GetFloat64 returns the float64 value. This is a same func as Get.
func (Float64Value) GetFloat64Ptr ¶ added in v0.1.0
func (v Float64Value) GetFloat64Ptr() *float64
GetFloat64Ptr returns a float64 pointer. This is a same func as GetPtr. If the value is null or unknown, nil is returned.
func (*Float64Value) GetPtr ¶ added in v0.0.3
func (v *Float64Value) GetPtr() *float64
GetPtr returns a pointer to the known int64 value, nil for a null value, or a pointer to 0 for an unknown value.
func (Float64Value) IsKnown ¶
func (v Float64Value) IsKnown() bool
IsKnown returns true if the value is not null and not unknown.
func (*Float64Value) SetFloat32 ¶ added in v0.1.0
func (v *Float64Value) SetFloat32(s float32)
SetFloat32 sets a converted float32 to float64 value.
func (*Float64Value) SetFloat32Ptr ¶ added in v0.1.0
func (v *Float64Value) SetFloat32Ptr(s *float32)
SetFloat32Ptr sets a converted float32 to float64 pointer. If the pointer is nil, the value is set to null.
func (*Float64Value) SetFloat64 ¶ added in v0.1.0
func (v *Float64Value) SetFloat64(s float64)
SetFloat64 sets a float64 value. This is a same func as Set.
func (*Float64Value) SetFloat64Ptr ¶ added in v0.1.0
func (v *Float64Value) SetFloat64Ptr(s *float64)
SetFloat64Ptr sets a float64 pointer. This is a same func as SetPtr.
func (*Float64Value) SetNull ¶
func (v *Float64Value) SetNull()
SetNull sets the Float64 value to null.
func (*Float64Value) SetPtr ¶ added in v0.1.0
func (v *Float64Value) SetPtr(s *float64)
SetPtr sets a pointer to the Float64 value.
func (*Float64Value) SetUnknown ¶
func (v *Float64Value) SetUnknown()
SetUnknown sets the Float64 value to unknown.
type Int64Type ¶
func (Int64Type) ValueFromInt64 ¶
func (t Int64Type) ValueFromInt64(_ context.Context, in basetypes.Int64Value) (basetypes.Int64Valuable, diag.Diagnostics)
func (Int64Type) ValueFromTerraform ¶
type Int64Value ¶
type Int64Value struct {
basetypes.Int64Value
}
func NewInt64Null ¶ added in v0.0.3
func NewInt64Null() Int64Value
func NewInt64PointerValue ¶ added in v0.0.3
func NewInt64PointerValue(s *int64) Int64Value
func NewInt64Unknown ¶ added in v0.0.3
func NewInt64Unknown() Int64Value
func NewInt64Value ¶ added in v0.0.3
func NewInt64Value(s int64) Int64Value
func (*Int64Value) Get ¶
func (v *Int64Value) Get() int64
Get returns the known Int64 value. If Int64 is null or unknown, returns 0.
func (Int64Value) GetInt ¶ added in v0.1.0
func (v Int64Value) GetInt() int
GetInt returns converted int64 to int value.
func (Int64Value) GetInt16 ¶ added in v0.1.0
func (v Int64Value) GetInt16() int16
GetInt16 return converted int64 to int16 value.
func (Int64Value) GetInt16Ptr ¶ added in v0.1.0
func (v Int64Value) GetInt16Ptr() *int16
GetInt16Ptr returns a converted int64 to int16 pointer. If the value is null or unknown, nil is returned.
func (Int64Value) GetInt32 ¶ added in v0.1.0
func (v Int64Value) GetInt32() int32
GetInt32 returns converted int64 to int32 value.
func (Int64Value) GetInt32Ptr ¶ added in v0.1.0
func (v Int64Value) GetInt32Ptr() *int32
GetInt32Ptr returns a converted int64 to int32 pointer. If the value is null or unknown, nil is returned.
func (Int64Value) GetInt64 ¶ added in v0.1.0
func (v Int64Value) GetInt64() int64
GetInt64 returns int64 value. This is a same func as Get.
func (Int64Value) GetInt64Ptr ¶ added in v0.1.0
func (v Int64Value) GetInt64Ptr() *int64
GetInt64Ptr returns a pointer to the underlying int64 value.
func (Int64Value) GetInt8 ¶ added in v0.1.0
func (v Int64Value) GetInt8() int8
GetInt8 return converted int64 to int8 value.
func (Int64Value) GetInt8Ptr ¶ added in v0.1.0
func (v Int64Value) GetInt8Ptr() *int8
GetInt8Ptr returns a converted int64 to int8 pointer. If the value is null or unknown, nil is returned.
func (Int64Value) GetIntPtr ¶ added in v0.1.0
func (v Int64Value) GetIntPtr() *int
GetIntPtr returns a converted int64 to int pointer. If the value is null or unknown, nil is returned.
func (*Int64Value) GetPtr ¶ added in v0.0.3
func (v *Int64Value) GetPtr() *int64
GetPtr returns a pointer to the known int64 value, nil for a null value, or a pointer to 0 for an unknown value.
func (Int64Value) IsKnown ¶
func (v Int64Value) IsKnown() bool
IsKnown returns true if the value is not null and not unknown.
func (*Int64Value) SetInt ¶ added in v0.1.0
func (v *Int64Value) SetInt(s int)
SetInt sets the int64 value to the given int.
func (*Int64Value) SetInt16 ¶ added in v0.1.0
func (v *Int64Value) SetInt16(s int16)
SetInt16 sets the int64 value to the given int16.
func (*Int64Value) SetInt16Ptr ¶ added in v0.1.0
func (v *Int64Value) SetInt16Ptr(s *int16)
SetInt16Ptr sets the int64 value to the given int16 pointer. If the pointer is nil, the value is set to null.
func (*Int64Value) SetInt32 ¶ added in v0.1.0
func (v *Int64Value) SetInt32(s int32)
SetInt32 Sets the int64 value to the given int32.
func (*Int64Value) SetInt32Ptr ¶ added in v0.1.0
func (v *Int64Value) SetInt32Ptr(s *int32)
SetInt32Ptr sets the int64 value to the given int32 pointer. If the pointer is nil, the value is set to null.
func (*Int64Value) SetInt64 ¶ added in v0.1.0
func (v *Int64Value) SetInt64(s int64)
SetInt64 sets the int64 value to the given int64. This is a same func as Set.
func (*Int64Value) SetInt64Ptr ¶ added in v0.1.0
func (v *Int64Value) SetInt64Ptr(s *int64)
SetInt64Ptr sets the int64 value to the given int64 pointer.
func (*Int64Value) SetInt8 ¶ added in v0.1.0
func (v *Int64Value) SetInt8(s int8)
SetInt8 sets the int64 value to the given int8.
func (*Int64Value) SetInt8Ptr ¶ added in v0.1.0
func (v *Int64Value) SetInt8Ptr(s *int8)
SetInt8Ptr sets the int64 value to the given int8 pointer. If the pointer is nil, the value is set to null.
func (*Int64Value) SetIntPtr ¶ added in v0.1.0
func (v *Int64Value) SetIntPtr(s *int)
SetIntPtr sets the int64 value to the given int pointer. If the pointer is nil, the value is set to null.
func (*Int64Value) SetPtr ¶ added in v0.1.0
func (v *Int64Value) SetPtr(s *int64)
SetPtr sets a pointer to the Int64 value.
func (*Int64Value) SetUnknown ¶
func (v *Int64Value) SetUnknown()
SetUnknown sets the Int64 value to unknown.
type ListNestedObjectTypeOf ¶ added in v0.2.0
ListNestedObjectTypeOf is the attribute type of a ListNestedObjectValueOf.
func NewListNestedObjectTypeOf ¶ added in v0.2.0
func NewListNestedObjectTypeOf[T any](ctx context.Context) ListNestedObjectTypeOf[T]
func (ListNestedObjectTypeOf[T]) Equal ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) Equal(o attr.Type) bool
func (ListNestedObjectTypeOf[T]) NewObjectPtr ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) NewObjectSlice ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) NullValue ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) String ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) String() string
func (ListNestedObjectTypeOf[T]) ValueFromList ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) ValueFromObjectPtr ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) ValueFromObjectSlice ¶ added in v0.2.0
func (t ListNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) ValueFromTerraform ¶ added in v0.2.0
type ListNestedObjectValueOf ¶ added in v0.2.0
ListNestedObjectValueOf represents a Terraform Plugin Framework List value whose elements are of type ObjectTypeOf.
func NewListNestedObjectValueOfNull ¶ added in v0.2.0
func NewListNestedObjectValueOfNull[T any](ctx context.Context) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfPtr ¶ added in v0.2.0
func NewListNestedObjectValueOfPtr[T any](ctx context.Context, t *T) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfSlice ¶ added in v0.2.0
func NewListNestedObjectValueOfSlice[T any](ctx context.Context, ts []*T) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfUnknown ¶ added in v0.2.0
func NewListNestedObjectValueOfUnknown[T any](ctx context.Context) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfValueSlice ¶ added in v0.2.0
func NewListNestedObjectValueOfValueSlice[T any](ctx context.Context, ts []T) ListNestedObjectValueOf[T]
func (ListNestedObjectValueOf[T]) Equal ¶ added in v0.2.0
func (v ListNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (ListNestedObjectValueOf[T]) Get ¶ added in v0.2.0
func (v ListNestedObjectValueOf[T]) Get(ctx context.Context) ([]*T, diag.Diagnostics)
Get returns a slice of pointers to the elements of a ListNestedObject.
func (ListNestedObjectValueOf[T]) IsKnown ¶ added in v0.2.0
func (v ListNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*ListNestedObjectValueOf[T]) Set ¶ added in v0.2.0
func (v *ListNestedObjectValueOf[T]) Set(ctx context.Context, slice []*T) diag.Diagnostics
Set returns a ListNestedObjectValueOf from a slice of pointers to the elements of a ListNestedObject.
func (*ListNestedObjectValueOf[T]) SetNull ¶ added in v0.2.0
func (v *ListNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*ListNestedObjectValueOf[T]) SetUnknown ¶ added in v0.2.0
func (v *ListNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
type ListNestedType ¶
ListNestedType is the attribute type of a ListNestedValue.
func (ListNestedType) ElementType ¶
func (t ListNestedType) ElementType() attr.Type
func (ListNestedType) String ¶
func (t ListNestedType) String() string
String returns a string representation of the type.
func (ListNestedType) TerraformType ¶
func (t ListNestedType) TerraformType(ctx context.Context) tftypes.Type
TerraformType returns the tftypes.Type that should be used to represent this type. This constrains what user input will be accepted and what kind of data can be set in state. The framework will use this to translate the AttributeType to something Terraform can understand.
func (ListNestedType) ValueFromList ¶
func (t ListNestedType) ValueFromList(_ context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
func (ListNestedType) ValueFromTerraform ¶
type ListNestedValue ¶
func NewListNestedNull ¶ added in v0.0.5
func NewListNestedNull(elementType attr.Type) ListNestedValue
func NewListNestedUnknown ¶ added in v0.0.5
func NewListNestedUnknown(elementType attr.Type) ListNestedValue
func (*ListNestedValue) Get ¶
func (v *ListNestedValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
func (ListNestedValue) IsKnown ¶
func (v ListNestedValue) IsKnown() bool
func (*ListNestedValue) Set ¶
func (v *ListNestedValue) Set(ctx context.Context, elements any) diag.Diagnostics
func (*ListNestedValue) SetNull ¶
func (v *ListNestedValue) SetNull(ctx context.Context)
func (*ListNestedValue) SetUnknown ¶
func (v *ListNestedValue) SetUnknown(ctx context.Context)
func (ListNestedValue) ToListValue ¶
func (v ListNestedValue) ToListValue(_ context.Context) (basetypes.ListValue, diag.Diagnostics)
type ListType ¶
func (ListType) ElementType ¶
func (ListType) ValueFromList ¶
func (t ListType) ValueFromList(_ context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
func (ListType) ValueFromTerraform ¶
type ListTypeOf ¶ added in v0.3.0
func NewListTypeOf ¶ added in v0.3.0
func NewListTypeOf[T any](ctx context.Context) ListTypeOf[T]
func (ListTypeOf[T]) ElementType ¶ added in v0.3.0
func (t ListTypeOf[T]) ElementType() attr.Type
ElementType returns the element type of this List.
func (ListTypeOf[T]) Equal ¶ added in v0.3.0
func (t ListTypeOf[T]) Equal(o attr.Type) bool
Equal returns true if the given type is equal to this type.
func (ListTypeOf[T]) String ¶ added in v0.3.0
func (t ListTypeOf[T]) String() string
String returns a string representation of the type.
func (ListTypeOf[T]) ValueFromList ¶ added in v0.3.0
func (t ListTypeOf[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
ValueFromList converts a basetypes.ListValue to a ListValueOf.
func (ListTypeOf[T]) ValueFromTerraform ¶ added in v0.3.0
func (t ListTypeOf[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
ValueFromTerraform converts a tftypes.Value to a ListValueOf.
type ListValue ¶
func NewListNull ¶ added in v0.0.3
func NewListUnknown ¶ added in v0.0.3
func NewListValue ¶ added in v0.0.3
func NewListValueFrom ¶ added in v0.0.3
func NewListValueMust ¶ added in v0.0.3
func (*ListValue) SetUnknown ¶
func (ListValue) ToListValue ¶
type ListValueOf ¶ added in v0.3.0
func NewListValueOfNull ¶ added in v0.3.0
func NewListValueOfNull[T any](ctx context.Context) ListValueOf[T]
NewListValueOfNull returns a new ListValueOf with a null value.
func NewListValueOfSlice ¶ added in v0.3.0
func NewListValueOfSlice[T any](ctx context.Context, elements []T) ListValueOf[T]
NewListValueOfSlice returns a new ListValueOf with the given slice value.
func NewListValueOfSlicePtr ¶ added in v0.3.0
func NewListValueOfSlicePtr[T any](ctx context.Context, elements []*T) ListValueOf[T]
NewListValueOfSlicePtr returns a new ListValueOf with the given slice value.
func NewListValueOfUnknown ¶ added in v0.3.0
func NewListValueOfUnknown[T any](ctx context.Context) ListValueOf[T]
NewListValueOfUnknown returns a new ListValueOf with an unknown value.
func (ListValueOf[T]) Equal ¶ added in v0.3.0
func (v ListValueOf[T]) Equal(o attr.Value) bool
Equal returns true if the given value is equal to this value.
func (ListValueOf[T]) Get ¶ added in v0.3.0
func (v ListValueOf[T]) Get(ctx context.Context) (values []T, diags diag.Diagnostics)
Get returns a ListValueOf from the given value.
func (ListValueOf[T]) IsKnown ¶ added in v0.3.0
func (v ListValueOf[T]) IsKnown() bool
IsKnown returns true if the value is known.
func (*ListValueOf[T]) Set ¶ added in v0.3.0
func (v *ListValueOf[T]) Set(ctx context.Context, elements []T) diag.Diagnostics
Set sets the value of this value.
func (*ListValueOf[T]) SetNull ¶ added in v0.3.0
func (v *ListValueOf[T]) SetNull(ctx context.Context)
SetNull sets the value to null.
func (*ListValueOf[T]) SetUnknown ¶ added in v0.3.0
func (v *ListValueOf[T]) SetUnknown(ctx context.Context)
SetUnknown sets the value to unknown.
func (ListValueOf[T]) ToListValue ¶ added in v0.3.0
func (v ListValueOf[T]) ToListValue(_ context.Context) (basetypes.ListValue, diag.Diagnostics)
ToListValue converts the given value to a ListValue.
type MapNestedObjectTypeOf ¶ added in v0.2.0
MapNestedObjectTypeOf is the attribute type of a MapNestedObjectValueOf.
func NewMapNestedObjectTypeOf ¶ added in v0.2.0
func NewMapNestedObjectTypeOf[T any](ctx context.Context) MapNestedObjectTypeOf[T]
func (MapNestedObjectTypeOf[T]) Equal ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) Equal(o attr.Type) bool
func (MapNestedObjectTypeOf[T]) NewObjectPtr ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) NewObjectSlice ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, _, _ int) (any, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) NullValue ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) String ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) String() string
func (MapNestedObjectTypeOf[T]) ValueFromMap ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) ValueFromObjectPtr ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) ValueFromObjectSlice ¶ added in v0.2.0
func (t MapNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) ValueFromTerraform ¶ added in v0.2.0
type MapNestedObjectValueOf ¶ added in v0.2.0
MapNestedObjectValueOf represents a Terraform Plugin Framework Map value whose elements are of type ObjectTypeOf.
func NewMapNestedObjectValueOfMap ¶ added in v0.3.1
func NewMapNestedObjectValueOfMap[T any](ctx context.Context, m map[string]*T) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfNull ¶ added in v0.2.0
func NewMapNestedObjectValueOfNull[T any](ctx context.Context) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfPtr ¶ added in v0.2.0
func NewMapNestedObjectValueOfPtr[T any](ctx context.Context, m map[string]*T) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfUnknown ¶ added in v0.2.0
func NewMapNestedObjectValueOfUnknown[T any](ctx context.Context) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfValueMap ¶ added in v0.3.1
func NewMapNestedObjectValueOfValueMap[T any](ctx context.Context, m map[string]T) MapNestedObjectValueOf[T]
func (MapNestedObjectValueOf[T]) Equal ¶ added in v0.2.0
func (v MapNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (MapNestedObjectValueOf[T]) Get ¶ added in v0.2.0
func (v MapNestedObjectValueOf[T]) Get(ctx context.Context) (map[string]*T, diag.Diagnostics)
Get returns a slice of pointers to the elements of a MapNestedObject.
func (MapNestedObjectValueOf[T]) IsKnown ¶ added in v0.2.0
func (v MapNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*MapNestedObjectValueOf[T]) Set ¶ added in v0.2.0
func (v *MapNestedObjectValueOf[T]) Set(ctx context.Context, m map[string]*T) diag.Diagnostics
Set returns a MapNestedObjectValueOf from a slice of pointers to the elements of a MapNestedObject.
func (*MapNestedObjectValueOf[T]) SetNull ¶ added in v0.2.0
func (v *MapNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*MapNestedObjectValueOf[T]) SetUnknown ¶ added in v0.2.0
func (v *MapNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
type MapNestedType ¶
MapNestedType is the attribute type of a MapNestedValue.
func (MapNestedType) ElementType ¶
func (t MapNestedType) ElementType() attr.Type
func (MapNestedType) String ¶
func (t MapNestedType) String() string
String returns a string representation of the type.
func (MapNestedType) TerraformType ¶
func (t MapNestedType) TerraformType(ctx context.Context) tftypes.Type
TerraformType returns the tftypes.Type that should be used to represent this type. This constrains what user input will be accepted and what kind of data can be set in state. The framework will use this to translate the AttributeType to something Terraform can understand.
func (MapNestedType) ValueFromMap ¶
func (t MapNestedType) ValueFromMap(_ context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
func (MapNestedType) ValueFromTerraform ¶
type MapNestedValue ¶
func NewMapNestedNull ¶ added in v0.0.5
func NewMapNestedNull(elementType attr.Type) MapNestedValue
func NewMapNestedUnknown ¶ added in v0.0.5
func NewMapNestedUnknown(elementType attr.Type) MapNestedValue
func (*MapNestedValue) Get ¶
func (v *MapNestedValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
func (MapNestedValue) IsKnown ¶
func (v MapNestedValue) IsKnown() bool
func (*MapNestedValue) Set ¶
func (v *MapNestedValue) Set(ctx context.Context, elements any) diag.Diagnostics
func (*MapNestedValue) SetNull ¶
func (v *MapNestedValue) SetNull(ctx context.Context)
func (*MapNestedValue) SetUnknown ¶
func (v *MapNestedValue) SetUnknown(ctx context.Context)
func (MapNestedValue) ToMapValue ¶
func (v MapNestedValue) ToMapValue(_ context.Context) (basetypes.MapValue, diag.Diagnostics)
type MapType ¶
func (MapType) ElementType ¶
func (MapType) ValueFromMap ¶
func (t MapType) ValueFromMap(_ context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
func (MapType) ValueFromTerraform ¶
type MapTypeOf ¶ added in v0.3.0
func (MapTypeOf[T]) ElementType ¶ added in v0.3.0
ElementType returns the element type of this Map.
func (MapTypeOf[T]) Equal ¶ added in v0.3.0
Equal returns true if the given type is equal to this type.
func (MapTypeOf[T]) ValueFromMap ¶ added in v0.3.0
func (t MapTypeOf[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
ValueFromMap converts a basetypes.MapValue to a MapValueOf.
func (MapTypeOf[T]) ValueFromTerraform ¶ added in v0.3.0
ValueFromTerraform converts a tftypes.Value to a MapValueOf.
type MapValue ¶
func NewMapNull ¶ added in v0.0.3
func NewMapUnknown ¶ added in v0.0.3
func NewMapValue ¶ added in v0.0.3
func NewMapValueFrom ¶ added in v0.0.3
func NewMapValueMust ¶ added in v0.0.3
func (*MapValue) SetUnknown ¶
func (MapValue) ToMapValue ¶
type MapValueOf ¶ added in v0.3.0
func NewMapValueOfMap ¶ added in v0.3.0
func NewMapValueOfMap[T any](ctx context.Context, elements map[string]T) (MapValueOf[T], diag.Diagnostics)
NewMapValueOfMap returns a new MapValueOf with the given map value.
func NewMapValueOfNull ¶ added in v0.3.0
func NewMapValueOfNull[T any](ctx context.Context) MapValueOf[T]
NewMapValueOfNull returns a new MapValueOf with a null value.
func NewMapValueOfUnknown ¶ added in v0.3.0
func NewMapValueOfUnknown[T any](ctx context.Context) MapValueOf[T]
NewMapValueOfUnknown returns a new MapValueOf with an unknown value.
func (MapValueOf[T]) Equal ¶ added in v0.3.0
func (v MapValueOf[T]) Equal(o attr.Value) bool
Equal returns true if the given value is equal to this value.
func (MapValueOf[T]) Get ¶ added in v0.3.0
func (v MapValueOf[T]) Get(ctx context.Context) (values map[string]T, diags diag.Diagnostics)
Get returns a MapValueOf from the given value.
func (MapValueOf[T]) IsKnown ¶ added in v0.3.0
func (v MapValueOf[T]) IsKnown() bool
IsKnown returns true if the value is known.
func (*MapValueOf[T]) Set ¶ added in v0.3.0
func (v *MapValueOf[T]) Set(ctx context.Context, elements map[string]T) diag.Diagnostics
Set sets the value of this value.
func (*MapValueOf[T]) SetNull ¶ added in v0.3.0
func (v *MapValueOf[T]) SetNull(ctx context.Context)
SetNull sets the value to null.
func (*MapValueOf[T]) SetUnknown ¶ added in v0.3.0
func (v *MapValueOf[T]) SetUnknown(ctx context.Context)
SetUnknown sets the value to unknown.
func (MapValueOf[T]) ToMapValue ¶ added in v0.3.0
func (v MapValueOf[T]) ToMapValue(_ context.Context) (basetypes.MapValue, diag.Diagnostics)
ToMapValue converts the given value to a MapValue.
type NestedObjectType ¶ added in v0.2.0
type NestedObjectType interface { attr.Type // NewObjectPtr returns a new, empty value as an object pointer (Go *struct). NewObjectPtr(context.Context) (any, diag.Diagnostics) // NewObjectSlice returns a new value as an object slice (Go []*struct). NewObjectSlice(context.Context, int, int) (any, diag.Diagnostics) // NullValue returns a Null Value. NullValue(context.Context) (attr.Value, diag.Diagnostics) // ValueFromObjectPtr returns a Value given an object pointer (Go *struct). ValueFromObjectPtr(context.Context, any) (attr.Value, diag.Diagnostics) // ValueFromObjectSlice returns a Value given an object pointer (Go []*struct). ValueFromObjectSlice(context.Context, any) (attr.Value, diag.Diagnostics) }
NestedObjectType extends the Type interface for types that represent nested Objects.
type NestedObjectValue ¶ added in v0.2.0
NestedObjectValue extends the Value interface for values that represent nested Objects.
type NumberType ¶
type NumberType struct {
basetypes.NumberType
}
func (NumberType) String ¶
func (t NumberType) String() string
func (NumberType) ValueFromNumber ¶
func (t NumberType) ValueFromNumber(_ context.Context, in basetypes.NumberValue) (basetypes.NumberValuable, diag.Diagnostics)
func (NumberType) ValueFromTerraform ¶
type NumberValue ¶
type NumberValue struct {
basetypes.NumberValue
}
func NewNumberNull ¶ added in v0.0.3
func NewNumberNull() NumberValue
func NewNumberUnknown ¶ added in v0.0.3
func NewNumberUnknown() NumberValue
func NewNumberValue ¶ added in v0.0.3
func NewNumberValue(s *big.Float) NumberValue
func (*NumberValue) Get ¶
func (v *NumberValue) Get() *big.Float
Get returns the known Number value. If Number is null or unknown, returns 0.0.
func (NumberValue) IsKnown ¶
func (v NumberValue) IsKnown() bool
IsKnown returns true if the value is not null and not unknown.
func (*NumberValue) SetNull ¶
func (v *NumberValue) SetNull()
SetNull sets the Number value to null.
func (*NumberValue) SetUnknown ¶
func (v *NumberValue) SetUnknown()
SetUnknown sets the Number value to unknown.
type ObjectType ¶
type ObjectType struct {
basetypes.ObjectType
}
func (ObjectType) String ¶
func (t ObjectType) String() string
func (ObjectType) ValueFromObject ¶
func (t ObjectType) ValueFromObject(_ context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ObjectType) ValueFromTerraform ¶
type ObjectTypeOf ¶ added in v0.2.0
type ObjectTypeOf[T any] struct { basetypes.ObjectType }
ObjectTypeOf is the attribute type of an ObjectValueOf.
func NewObjectTypeOf ¶ added in v0.2.0
func NewObjectTypeOf[T any](ctx context.Context) ObjectTypeOf[T]
func (ObjectTypeOf[T]) String ¶ added in v0.2.0
func (t ObjectTypeOf[T]) String() string
func (ObjectTypeOf[T]) ValueFromObject ¶ added in v0.2.0
func (t ObjectTypeOf[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ObjectTypeOf[T]) ValueFromTerraform ¶ added in v0.2.0
type ObjectValue ¶
type ObjectValue struct {
basetypes.ObjectValue
}
func NewObjectNull ¶ added in v0.0.5
func NewObjectNull(attributeTypes map[string]attr.Type) ObjectValue
func NewObjectUnknown ¶ added in v0.0.5
func NewObjectUnknown(attributeTypes map[string]attr.Type) ObjectValue
func (*ObjectValue) Get ¶
func (v *ObjectValue) Get(ctx context.Context, target interface{}, opts basetypes.ObjectAsOptions) diag.Diagnostics
func (ObjectValue) IsKnown ¶
func (v ObjectValue) IsKnown() bool
func (*ObjectValue) Set ¶
func (v *ObjectValue) Set(ctx context.Context, structure any) diag.Diagnostics
func (*ObjectValue) SetNull ¶
func (v *ObjectValue) SetNull(ctx context.Context)
func (*ObjectValue) SetUnknown ¶
func (v *ObjectValue) SetUnknown(ctx context.Context)
type ObjectValueOf ¶ added in v0.2.0
type ObjectValueOf[T any] struct { basetypes.ObjectValue }
ObjectValueOf represents a Terraform Plugin Framework Object value whose corresponding Go type is the structure T.
func NewObjectValueOf ¶ added in v0.2.0
func NewObjectValueOf[T any](ctx context.Context, t *T) ObjectValueOf[T]
func NewObjectValueOfNull ¶ added in v0.2.0
func NewObjectValueOfNull[T any](ctx context.Context) ObjectValueOf[T]
func NewObjectValueOfUnknown ¶ added in v0.2.0
func NewObjectValueOfUnknown[T any](ctx context.Context) ObjectValueOf[T]
func (ObjectValueOf[T]) Get ¶ added in v0.2.0
func (v ObjectValueOf[T]) Get(ctx context.Context) (*T, diag.Diagnostics)
func (ObjectValueOf[T]) IsKnown ¶ added in v0.2.0
func (v ObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*ObjectValueOf[T]) Set ¶ added in v0.2.0
func (v *ObjectValueOf[T]) Set(ctx context.Context, t *T) (diags diag.Diagnostics)
func (*ObjectValueOf[T]) SetNull ¶ added in v0.2.0
func (v *ObjectValueOf[T]) SetNull(ctx context.Context)
func (*ObjectValueOf[T]) SetUnknown ¶ added in v0.2.0
func (v *ObjectValueOf[T]) SetUnknown(ctx context.Context)
type SetNestedObjectTypeOf ¶ added in v0.2.0
SetNestedObjectTypeOf is the attribute type of a SetNestedObjectValueOf.
func NewSetNestedObjectTypeOf ¶ added in v0.2.0
func NewSetNestedObjectTypeOf[T any](ctx context.Context) SetNestedObjectTypeOf[T]
func (SetNestedObjectTypeOf[T]) Equal ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) Equal(o attr.Type) bool
func (SetNestedObjectTypeOf[T]) NewObjectPtr ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) NewObjectSlice ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) NullValue ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) String ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) String() string
func (SetNestedObjectTypeOf[T]) ValueFromObjectPtr ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) ValueFromObjectSlice ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) ValueFromSet ¶ added in v0.2.0
func (t SetNestedObjectTypeOf[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) ValueFromTerraform ¶ added in v0.2.0
type SetNestedObjectValueOf ¶ added in v0.2.0
SetNestedObjectValueOf represents a Terraform Plugin Framework Set value whose elements are of type ObjectTypeOf.
func NewSetNestedObjectValueOfNull ¶ added in v0.2.0
func NewSetNestedObjectValueOfNull[T any](ctx context.Context) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfPtr ¶ added in v0.2.0
func NewSetNestedObjectValueOfPtr[T any](ctx context.Context, t *T) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfSlice ¶ added in v0.2.0
func NewSetNestedObjectValueOfSlice[T any](ctx context.Context, ts []*T) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfUnknown ¶ added in v0.2.0
func NewSetNestedObjectValueOfUnknown[T any](ctx context.Context) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfValueSlice ¶ added in v0.2.0
func NewSetNestedObjectValueOfValueSlice[T any](ctx context.Context, ts []T) SetNestedObjectValueOf[T]
func (SetNestedObjectValueOf[T]) Equal ¶ added in v0.2.0
func (v SetNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (SetNestedObjectValueOf[T]) Get ¶ added in v0.2.0
func (v SetNestedObjectValueOf[T]) Get(ctx context.Context) ([]*T, diag.Diagnostics)
Get returns a slice of pointers to the elements of a SetNestedObject.
func (SetNestedObjectValueOf[T]) IsKnown ¶ added in v0.2.0
func (v SetNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*SetNestedObjectValueOf[T]) Set ¶ added in v0.2.0
func (v *SetNestedObjectValueOf[T]) Set(ctx context.Context, slice []*T) diag.Diagnostics
Set returns a SetNestedObjectValueOf from a slice of pointers to the elements of a SetNestedObject.
func (*SetNestedObjectValueOf[T]) SetNull ¶ added in v0.2.0
func (v *SetNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*SetNestedObjectValueOf[T]) SetUnknown ¶ added in v0.2.0
func (v *SetNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
type SetNestedType ¶
SetNestedType is the attribute type of a SetNestedValue.
func (SetNestedType) ElementType ¶
func (t SetNestedType) ElementType() attr.Type
func (SetNestedType) String ¶
func (t SetNestedType) String() string
String returns a string representation of the type.
func (SetNestedType) TerraformType ¶
func (t SetNestedType) TerraformType(ctx context.Context) tftypes.Type
TerraformType returns the tftypes.Type that should be used to represent this type. This constrains what user input will be accepted and what kind of data can be set in state. The framework will use this to translate the AttributeType to something Terraform can understand.
func (SetNestedType) ValueFromSet ¶
func (t SetNestedType) ValueFromSet(_ context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
func (SetNestedType) ValueFromTerraform ¶
type SetNestedValue ¶
func NewSetNestedNull ¶ added in v0.0.5
func NewSetNestedNull(elementType attr.Type) SetNestedValue
func NewSetNestedUnknown ¶ added in v0.0.5
func NewSetNestedUnknown(elementType attr.Type) SetNestedValue
func (*SetNestedValue) Get ¶
func (v *SetNestedValue) Get(ctx context.Context, target interface{}, allowUnhandled bool) (diag diag.Diagnostics)
func (SetNestedValue) IsKnown ¶
func (v SetNestedValue) IsKnown() bool
func (*SetNestedValue) Set ¶
func (v *SetNestedValue) Set(ctx context.Context, elements any) diag.Diagnostics
func (*SetNestedValue) SetNull ¶
func (v *SetNestedValue) SetNull(ctx context.Context)
func (*SetNestedValue) SetUnknown ¶
func (v *SetNestedValue) SetUnknown(ctx context.Context)
func (SetNestedValue) ToSetValue ¶
func (v SetNestedValue) ToSetValue(_ context.Context) (basetypes.SetValue, diag.Diagnostics)
type SetType ¶
func (SetType) ElementType ¶
func (SetType) ValueFromSet ¶
func (t SetType) ValueFromSet(_ context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
func (SetType) ValueFromTerraform ¶
type SetTypeOf ¶ added in v0.3.0
func (SetTypeOf[T]) ElementType ¶ added in v0.3.0
ElementType returns the element type of this Set.
func (SetTypeOf[T]) Equal ¶ added in v0.3.0
Equal returns true if the given type is equal to this type.
func (SetTypeOf[T]) ValueFromSet ¶ added in v0.3.0
func (t SetTypeOf[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
ValueFromSet converts a basetypes.SetValue to a SetValueOf.
func (SetTypeOf[T]) ValueFromTerraform ¶ added in v0.3.0
ValueFromTerraform converts a tftypes.Value to a SetValueOf.
type SetValue ¶
func NewSetNull ¶ added in v0.0.3
func NewSetUnknown ¶ added in v0.0.3
func NewSetValue ¶ added in v0.0.3
func NewSetValueFrom ¶ added in v0.0.3
func NewSetValueMust ¶ added in v0.0.3
func (*SetValue) SetUnknown ¶
func (SetValue) ToSetValue ¶
type SetValueOf ¶ added in v0.3.0
func NewSetValueOfNull ¶ added in v0.3.0
func NewSetValueOfNull[T any](ctx context.Context) SetValueOf[T]
NewSetValueOfNull returns a new SetValueOf with a null value.
func NewSetValueOfSlice ¶ added in v0.3.0
func NewSetValueOfSlice[T any](ctx context.Context, elements []T) SetValueOf[T]
NewSetValueOfSlice returns a new SetValueOf with the given slice value.
func NewSetValueOfSlicePtr ¶ added in v0.3.0
func NewSetValueOfSlicePtr[T any](ctx context.Context, elements []*T) SetValueOf[T]
NewSetValueOfSlicePtr returns a new SetValueOf with the given slice value.
func NewSetValueOfUnknown ¶ added in v0.3.0
func NewSetValueOfUnknown[T any](ctx context.Context) SetValueOf[T]
NewSetValueOfUnknown returns a new SetValueOf with an unknown value.
func (SetValueOf[T]) Equal ¶ added in v0.3.0
func (v SetValueOf[T]) Equal(o attr.Value) bool
Equal returns true if the given value is equal to this value.
func (SetValueOf[T]) Get ¶ added in v0.3.0
func (v SetValueOf[T]) Get(ctx context.Context) (values []T, diags diag.Diagnostics)
Get returns a SetValueOf from the given value.
func (SetValueOf[T]) IsKnown ¶ added in v0.3.0
func (v SetValueOf[T]) IsKnown() bool
IsKnown returns true if the value is known.
func (*SetValueOf[T]) Set ¶ added in v0.3.0
func (v *SetValueOf[T]) Set(ctx context.Context, elements []T) diag.Diagnostics
Set sets the value of this value.
func (*SetValueOf[T]) SetNull ¶ added in v0.3.0
func (v *SetValueOf[T]) SetNull(ctx context.Context)
SetNull sets the value to null.
func (*SetValueOf[T]) SetUnknown ¶ added in v0.3.0
func (v *SetValueOf[T]) SetUnknown(ctx context.Context)
SetUnknown sets the value to unknown.
func (SetValueOf[T]) ToSetValue ¶ added in v0.3.0
func (v SetValueOf[T]) ToSetValue(_ context.Context) (basetypes.SetValue, diag.Diagnostics)
ToSetValue converts the given value to a SetValue.
type SingleNestedObjectTypeOf ¶ added in v0.2.0
type SingleNestedObjectTypeOf[T any] struct { basetypes.ObjectType }
func NewSingleNestedObjectTypeOf ¶ added in v0.2.0
func NewSingleNestedObjectTypeOf[T any](ctx context.Context) SingleNestedObjectTypeOf[T]
func (SingleNestedObjectTypeOf[T]) Equal ¶ added in v0.2.0
func (t SingleNestedObjectTypeOf[T]) Equal(o attr.Type) bool
func (SingleNestedObjectTypeOf[T]) String ¶ added in v0.2.0
func (t SingleNestedObjectTypeOf[T]) String() string
func (SingleNestedObjectTypeOf[T]) ValueFromObject ¶ added in v0.2.0
func (t SingleNestedObjectTypeOf[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (SingleNestedObjectTypeOf[T]) ValueFromTerraform ¶ added in v0.2.0
type SingleNestedObjectValueOf ¶ added in v0.2.0
type SingleNestedObjectValueOf[T any] struct { basetypes.ObjectValue }
SingleNestedObjectValueOf represents a Terraform Plugin Framework Single value whose corresponding Go type is the structure T.
func NewSingleNestedObjectValueOf ¶ added in v0.2.0
func NewSingleNestedObjectValueOf[T any](ctx context.Context, t *T) SingleNestedObjectValueOf[T]
func NewSingleNestedObjectValueOfNull ¶ added in v0.2.0
func NewSingleNestedObjectValueOfNull[T any](ctx context.Context) SingleNestedObjectValueOf[T]
func NewSingleNestedObjectValueOfUnknown ¶ added in v0.2.0
func NewSingleNestedObjectValueOfUnknown[T any](ctx context.Context) SingleNestedObjectValueOf[T]
func (SingleNestedObjectValueOf[T]) Equal ¶ added in v0.2.0
func (v SingleNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (SingleNestedObjectValueOf[T]) Get ¶ added in v0.2.0
func (v SingleNestedObjectValueOf[T]) Get(ctx context.Context) (*T, diag.Diagnostics)
func (SingleNestedObjectValueOf[T]) IsKnown ¶ added in v0.2.0
func (v SingleNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*SingleNestedObjectValueOf[T]) Set ¶ added in v0.2.0
func (v *SingleNestedObjectValueOf[T]) Set(ctx context.Context, t *T) (diags diag.Diagnostics)
func (*SingleNestedObjectValueOf[T]) SetNull ¶ added in v0.2.0
func (v *SingleNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*SingleNestedObjectValueOf[T]) SetUnknown ¶ added in v0.2.0
func (v *SingleNestedObjectValueOf[T]) SetUnknown(ctx context.Context)
type SingleNestedType ¶
type SingleNestedType struct {
basetypes.ObjectType
}
func (SingleNestedType) String ¶
func (t SingleNestedType) String() string
func (SingleNestedType) ValueFromObject ¶
func (t SingleNestedType) ValueFromObject(_ context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (SingleNestedType) ValueFromTerraform ¶
type SingleNestedValue ¶
type SingleNestedValue struct {
basetypes.ObjectValue
}
func NewSingleNestedNull ¶ added in v0.0.5
func NewSingleNestedNull(attributeTypes map[string]attr.Type) SingleNestedValue
func NewSingleNestedUnknown ¶ added in v0.0.5
func NewSingleNestedUnknown(attributeTypes map[string]attr.Type) SingleNestedValue
func (*SingleNestedValue) Get ¶
func (v *SingleNestedValue) Get(ctx context.Context, target interface{}, opts basetypes.ObjectAsOptions) (diag diag.Diagnostics)
func (SingleNestedValue) IsKnown ¶
func (v SingleNestedValue) IsKnown() bool
func (*SingleNestedValue) Set ¶
func (v *SingleNestedValue) Set(ctx context.Context, structure any) diag.Diagnostics
func (*SingleNestedValue) SetNull ¶
func (v *SingleNestedValue) SetNull(ctx context.Context)
func (*SingleNestedValue) SetUnknown ¶
func (v *SingleNestedValue) SetUnknown(ctx context.Context)
func (SingleNestedValue) ToObjectValue ¶
func (v SingleNestedValue) ToObjectValue(_ context.Context) (basetypes.ObjectValue, diag.Diagnostics)
type StringType ¶
type StringType struct {
basetypes.StringType
}
func (StringType) String ¶
func (t StringType) String() string
func (StringType) ValueFromString ¶
func (t StringType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
func (StringType) ValueFromTerraform ¶
type StringValue ¶
type StringValue struct {
basetypes.StringValue
}
func NewStringNull ¶ added in v0.0.3
func NewStringNull() StringValue
func NewStringPointerValue ¶ added in v0.0.3
func NewStringPointerValue(s *string) StringValue
func NewStringUnknown ¶ added in v0.0.3
func NewStringUnknown() StringValue
func NewStringValue ¶ added in v0.0.3
func NewStringValue(s string) StringValue
func (*StringValue) Get ¶
func (v *StringValue) Get() string
Get returns the known String value. If String is null or unknown, returns "".
func (*StringValue) GetPtr ¶ added in v0.0.3
func (v *StringValue) GetPtr() *string
GetPtr returns a pointer to the known int64 value, nil for a null value, or a pointer to 0 for an unknown value.
func (StringValue) IsKnown ¶
func (v StringValue) IsKnown() bool
IsKnown returns true if the value is not null and not unknown.
func (*StringValue) SetNull ¶
func (v *StringValue) SetNull()
SetNull sets the String value to null.
func (*StringValue) SetPtr ¶ added in v0.1.0
func (v *StringValue) SetPtr(s *string)
SetPtr sets a pointer to the String value.
func (*StringValue) SetUnknown ¶
func (v *StringValue) SetUnknown()
SetUnknown sets the String value to unknown.
Source Files ¶
- attrtypes.go
- base.go
- bool_type.go
- bool_value.go
- errs.go
- float64_type.go
- float64_value.go
- int64_type.go
- int64_value.go
- list_nested_type.go
- list_nested_value.go
- list_type.go
- list_value.go
- map_nested_type.go
- map_nested_value.go
- map_type.go
- map_value.go
- missing.go
- nested_object.go
- number_type.go
- number_value.go
- object_type.go
- object_value.go
- set_nested_type.go
- set_nested_value.go
- set_type.go
- set_value.go
- single_nested_type.go
- single_nested_value.go
- string_type.go
- string_value.go