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 ¶
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 DiagnosticString ¶
func DiagnosticString(d diag.Diagnostic) string
DiagnosticString formats a Diagnostic If there is no `Detail`, only prints summary, otherwise prints both.
func DiagnosticsError ¶
func DiagnosticsError(diags diag.Diagnostics) error
DiagnosticsError returns an error containing all Diagnostic with SeverityError.
func ElementType ¶
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 ¶
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 ¶
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 ¶
func NewBoolNull() BoolValue
func NewBoolPointerValue ¶
func NewBoolUnknown ¶
func NewBoolUnknown() BoolValue
func NewBoolValue ¶
func (*BoolValue) Get ¶
Get returns the known Bool value. If Bool is null or unknown, returns false.
func (*BoolValue) GetPtr ¶
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 ¶
func NewFloat64Null() Float64Value
func NewFloat64PointerValue ¶
func NewFloat64PointerValue(s *float64) Float64Value
func NewFloat64Unknown ¶
func NewFloat64Unknown() Float64Value
func NewFloat64Value ¶
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 ¶
func (v *Float64Value) GetFloat32() float32
GetFloat32 returns converted float64 to float32 value.
func (Float64Value) GetFloat32Ptr ¶
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 ¶
func (v Float64Value) GetFloat64() float64
GetFloat64 returns the float64 value. This is a same func as Get.
func (Float64Value) GetFloat64Ptr ¶
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 ¶
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 ¶
func (v *Float64Value) SetFloat32(s float32)
SetFloat32 sets a converted float32 to float64 value.
func (*Float64Value) SetFloat32Ptr ¶
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 ¶
func (v *Float64Value) SetFloat64(s float64)
SetFloat64 sets a float64 value. This is a same func as Set.
func (*Float64Value) SetFloat64Ptr ¶
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 ¶
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 ¶
func NewInt64Null() Int64Value
func NewInt64PointerValue ¶
func NewInt64PointerValue(s *int64) Int64Value
func NewInt64Unknown ¶
func NewInt64Unknown() Int64Value
func NewInt64Value ¶
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 ¶
func (v Int64Value) GetInt() int
GetInt returns converted int64 to int value.
func (Int64Value) GetInt16 ¶
func (v Int64Value) GetInt16() int16
GetInt16 return converted int64 to int16 value.
func (Int64Value) GetInt16Ptr ¶
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 ¶
func (v Int64Value) GetInt32() int32
GetInt32 returns converted int64 to int32 value.
func (Int64Value) GetInt32Ptr ¶
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 ¶
func (v Int64Value) GetInt64() int64
GetInt64 returns int64 value. This is a same func as Get.
func (Int64Value) GetInt64Ptr ¶
func (v Int64Value) GetInt64Ptr() *int64
GetInt64Ptr returns a pointer to the underlying int64 value.
func (Int64Value) GetInt8 ¶
func (v Int64Value) GetInt8() int8
GetInt8 return converted int64 to int8 value.
func (Int64Value) GetInt8Ptr ¶
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 ¶
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 ¶
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 ¶
func (v *Int64Value) SetInt(s int)
SetInt sets the int64 value to the given int.
func (*Int64Value) SetInt16 ¶
func (v *Int64Value) SetInt16(s int16)
SetInt16 sets the int64 value to the given int16.
func (*Int64Value) SetInt16Ptr ¶
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 ¶
func (v *Int64Value) SetInt32(s int32)
SetInt32 Sets the int64 value to the given int32.
func (*Int64Value) SetInt32Ptr ¶
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 ¶
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 ¶
func (v *Int64Value) SetInt64Ptr(s *int64)
SetInt64Ptr sets the int64 value to the given int64 pointer.
func (*Int64Value) SetInt8 ¶
func (v *Int64Value) SetInt8(s int8)
SetInt8 sets the int64 value to the given int8.
func (*Int64Value) SetInt8Ptr ¶
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 ¶
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 ¶
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 ¶
ListNestedObjectTypeOf is the attribute type of a ListNestedObjectValueOf.
func NewListNestedObjectTypeOf ¶
func NewListNestedObjectTypeOf[T any](ctx context.Context) ListNestedObjectTypeOf[T]
func (ListNestedObjectTypeOf[T]) NewObjectPtr ¶
func (t ListNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) NewObjectSlice ¶
func (t ListNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) NullValue ¶
func (t ListNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) String ¶
func (t ListNestedObjectTypeOf[T]) String() string
func (ListNestedObjectTypeOf[T]) ValueFromList ¶
func (t ListNestedObjectTypeOf[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) ValueFromObjectPtr ¶
func (t ListNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) ValueFromObjectSlice ¶
func (t ListNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
func (ListNestedObjectTypeOf[T]) ValueFromTerraform ¶
type ListNestedObjectValueOf ¶
ListNestedObjectValueOf represents a Terraform Plugin Framework List value whose elements are of type ObjectTypeOf.
func NewListNestedObjectValueOfNull ¶
func NewListNestedObjectValueOfNull[T any](ctx context.Context) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfPtr ¶
func NewListNestedObjectValueOfPtr[T any](ctx context.Context, t *T) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfSlice ¶
func NewListNestedObjectValueOfSlice[T any](ctx context.Context, ts []*T) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfUnknown ¶
func NewListNestedObjectValueOfUnknown[T any](ctx context.Context) ListNestedObjectValueOf[T]
func NewListNestedObjectValueOfValueSlice ¶
func NewListNestedObjectValueOfValueSlice[T any](ctx context.Context, ts []T) ListNestedObjectValueOf[T]
func (ListNestedObjectValueOf[T]) Equal ¶
func (v ListNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (ListNestedObjectValueOf[T]) Get ¶
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 ¶
func (v ListNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*ListNestedObjectValueOf[T]) Set ¶
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 ¶
func (v *ListNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*ListNestedObjectValueOf[T]) SetUnknown ¶
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 ¶
func NewListNestedNull(elementType attr.Type) ListNestedValue
func NewListNestedUnknown ¶
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 ¶
func NewListTypeOf ¶
func NewListTypeOf[T any](ctx context.Context) ListTypeOf[T]
func (ListTypeOf[T]) ElementType ¶
func (t ListTypeOf[T]) ElementType() attr.Type
ElementType returns the element type of this List.
func (ListTypeOf[T]) Equal ¶
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 ¶
func (t ListTypeOf[T]) String() string
String returns a string representation of the type.
func (ListTypeOf[T]) ValueFromList ¶
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 ¶
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 ¶
func NewListUnknown ¶
func NewListValue ¶
func NewListValueFrom ¶
func NewListValueMust ¶
func (*ListValue) SetUnknown ¶
func (ListValue) ToListValue ¶
type ListValueOf ¶
func NewListValueOfNull ¶
func NewListValueOfNull[T any](ctx context.Context) ListValueOf[T]
NewListValueOfNull returns a new ListValueOf with a null value.
func NewListValueOfSlice ¶
func NewListValueOfSlice[T any](ctx context.Context, elements []T) ListValueOf[T]
NewListValueOfSlice returns a new ListValueOf with the given slice value.
func NewListValueOfSlicePtr ¶
func NewListValueOfSlicePtr[T any](ctx context.Context, elements []*T) ListValueOf[T]
NewListValueOfSlicePtr returns a new ListValueOf with the given slice value.
func NewListValueOfUnknown ¶
func NewListValueOfUnknown[T any](ctx context.Context) ListValueOf[T]
NewListValueOfUnknown returns a new ListValueOf with an unknown value.
func (ListValueOf[T]) Equal ¶
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 ¶
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 ¶
func (v ListValueOf[T]) IsKnown() bool
IsKnown returns true if the value is known.
func (*ListValueOf[T]) Set ¶
func (v *ListValueOf[T]) Set(ctx context.Context, elements []T) diag.Diagnostics
Set sets the value of this value.
func (*ListValueOf[T]) SetNull ¶
func (v *ListValueOf[T]) SetNull(ctx context.Context)
SetNull sets the value to null.
func (*ListValueOf[T]) SetUnknown ¶
func (v *ListValueOf[T]) SetUnknown(ctx context.Context)
SetUnknown sets the value to unknown.
func (ListValueOf[T]) ToListValue ¶
func (v ListValueOf[T]) ToListValue(_ context.Context) (basetypes.ListValue, diag.Diagnostics)
ToListValue converts the given value to a ListValue.
type MapNestedObjectTypeOf ¶
MapNestedObjectTypeOf is the attribute type of a MapNestedObjectValueOf.
func NewMapNestedObjectTypeOf ¶
func NewMapNestedObjectTypeOf[T any](ctx context.Context) MapNestedObjectTypeOf[T]
func (MapNestedObjectTypeOf[T]) NewObjectPtr ¶
func (t MapNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) NewObjectSlice ¶
func (t MapNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, _, _ int) (any, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) NullValue ¶
func (t MapNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) String ¶
func (t MapNestedObjectTypeOf[T]) String() string
func (MapNestedObjectTypeOf[T]) ValueFromMap ¶
func (t MapNestedObjectTypeOf[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) ValueFromObjectPtr ¶
func (t MapNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) ValueFromObjectSlice ¶
func (t MapNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
func (MapNestedObjectTypeOf[T]) ValueFromTerraform ¶
type MapNestedObjectValueOf ¶
MapNestedObjectValueOf represents a Terraform Plugin Framework Map value whose elements are of type ObjectTypeOf.
func NewMapNestedObjectValueOfMap ¶
func NewMapNestedObjectValueOfMap[T any](ctx context.Context, m map[string]*T) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfNull ¶
func NewMapNestedObjectValueOfNull[T any](ctx context.Context) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfPtr ¶
func NewMapNestedObjectValueOfPtr[T any](ctx context.Context, m map[string]*T) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfUnknown ¶
func NewMapNestedObjectValueOfUnknown[T any](ctx context.Context) MapNestedObjectValueOf[T]
func NewMapNestedObjectValueOfValueMap ¶
func NewMapNestedObjectValueOfValueMap[T any](ctx context.Context, m map[string]T) MapNestedObjectValueOf[T]
func (MapNestedObjectValueOf[T]) Equal ¶
func (v MapNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (MapNestedObjectValueOf[T]) Get ¶
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 ¶
func (v MapNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*MapNestedObjectValueOf[T]) Set ¶
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 ¶
func (v *MapNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*MapNestedObjectValueOf[T]) SetUnknown ¶
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 ¶
func NewMapNestedNull(elementType attr.Type) MapNestedValue
func NewMapNestedUnknown ¶
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 ¶
func (MapTypeOf[T]) ElementType ¶
ElementType returns the element type of this Map.
func (MapTypeOf[T]) ValueFromMap ¶
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 ¶
ValueFromTerraform converts a tftypes.Value to a MapValueOf.
type MapValue ¶
func NewMapNull ¶
func NewMapUnknown ¶
func NewMapValue ¶
func NewMapValueFrom ¶
func NewMapValueMust ¶
func (*MapValue) SetUnknown ¶
func (MapValue) ToMapValue ¶
type MapValueOf ¶
func NewMapValueOfMap ¶
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 ¶
func NewMapValueOfNull[T any](ctx context.Context) MapValueOf[T]
NewMapValueOfNull returns a new MapValueOf with a null value.
func NewMapValueOfUnknown ¶
func NewMapValueOfUnknown[T any](ctx context.Context) MapValueOf[T]
NewMapValueOfUnknown returns a new MapValueOf with an unknown value.
func (MapValueOf[T]) Equal ¶
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 ¶
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 ¶
func (v MapValueOf[T]) IsKnown() bool
IsKnown returns true if the value is known.
func (*MapValueOf[T]) Set ¶
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 ¶
func (v *MapValueOf[T]) SetNull(ctx context.Context)
SetNull sets the value to null.
func (*MapValueOf[T]) SetUnknown ¶
func (v *MapValueOf[T]) SetUnknown(ctx context.Context)
SetUnknown sets the value to unknown.
func (MapValueOf[T]) ToMapValue ¶
func (v MapValueOf[T]) ToMapValue(_ context.Context) (basetypes.MapValue, diag.Diagnostics)
ToMapValue converts the given value to a MapValue.
type NestedObjectType ¶
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 ¶
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 ¶
func NewNumberNull() NumberValue
func NewNumberUnknown ¶
func NewNumberUnknown() NumberValue
func NewNumberValue ¶
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 ¶
type ObjectTypeOf[T any] struct { basetypes.ObjectType }
ObjectTypeOf is the attribute type of an ObjectValueOf.
func NewObjectTypeOf ¶
func NewObjectTypeOf[T any](ctx context.Context) ObjectTypeOf[T]
func (ObjectTypeOf[T]) String ¶
func (t ObjectTypeOf[T]) String() string
func (ObjectTypeOf[T]) ValueFromObject ¶
func (t ObjectTypeOf[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ObjectTypeOf[T]) ValueFromTerraform ¶
type ObjectValue ¶
type ObjectValue struct {
basetypes.ObjectValue
}
func NewObjectNull ¶
func NewObjectNull(attributeTypes map[string]attr.Type) ObjectValue
func NewObjectUnknown ¶
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 ¶
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 ¶
func NewObjectValueOf[T any](ctx context.Context, t *T) ObjectValueOf[T]
func NewObjectValueOfNull ¶
func NewObjectValueOfNull[T any](ctx context.Context) ObjectValueOf[T]
func NewObjectValueOfUnknown ¶
func NewObjectValueOfUnknown[T any](ctx context.Context) ObjectValueOf[T]
func (ObjectValueOf[T]) Get ¶
func (v ObjectValueOf[T]) Get(ctx context.Context) (*T, diag.Diagnostics)
func (ObjectValueOf[T]) IsKnown ¶
func (v ObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*ObjectValueOf[T]) Set ¶
func (v *ObjectValueOf[T]) Set(ctx context.Context, t *T) (diags diag.Diagnostics)
func (*ObjectValueOf[T]) SetNull ¶
func (v *ObjectValueOf[T]) SetNull(ctx context.Context)
func (*ObjectValueOf[T]) SetUnknown ¶
func (v *ObjectValueOf[T]) SetUnknown(ctx context.Context)
type SetNestedObjectTypeOf ¶
SetNestedObjectTypeOf is the attribute type of a SetNestedObjectValueOf.
func NewSetNestedObjectTypeOf ¶
func NewSetNestedObjectTypeOf[T any](ctx context.Context) SetNestedObjectTypeOf[T]
func (SetNestedObjectTypeOf[T]) NewObjectPtr ¶
func (t SetNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) NewObjectSlice ¶
func (t SetNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) NullValue ¶
func (t SetNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) String ¶
func (t SetNestedObjectTypeOf[T]) String() string
func (SetNestedObjectTypeOf[T]) ValueFromObjectPtr ¶
func (t SetNestedObjectTypeOf[T]) ValueFromObjectPtr(ctx context.Context, ptr any) (attr.Value, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) ValueFromObjectSlice ¶
func (t SetNestedObjectTypeOf[T]) ValueFromObjectSlice(ctx context.Context, slice any) (attr.Value, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) ValueFromSet ¶
func (t SetNestedObjectTypeOf[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
func (SetNestedObjectTypeOf[T]) ValueFromTerraform ¶
type SetNestedObjectValueOf ¶
SetNestedObjectValueOf represents a Terraform Plugin Framework Set value whose elements are of type ObjectTypeOf.
func NewSetNestedObjectValueOfNull ¶
func NewSetNestedObjectValueOfNull[T any](ctx context.Context) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfPtr ¶
func NewSetNestedObjectValueOfPtr[T any](ctx context.Context, t *T) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfSlice ¶
func NewSetNestedObjectValueOfSlice[T any](ctx context.Context, ts []*T) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfUnknown ¶
func NewSetNestedObjectValueOfUnknown[T any](ctx context.Context) SetNestedObjectValueOf[T]
func NewSetNestedObjectValueOfValueSlice ¶
func NewSetNestedObjectValueOfValueSlice[T any](ctx context.Context, ts []T) SetNestedObjectValueOf[T]
func (SetNestedObjectValueOf[T]) Equal ¶
func (v SetNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (SetNestedObjectValueOf[T]) Get ¶
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 ¶
func (v SetNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*SetNestedObjectValueOf[T]) Set ¶
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 ¶
func (v *SetNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*SetNestedObjectValueOf[T]) SetUnknown ¶
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 ¶
func NewSetNestedNull(elementType attr.Type) SetNestedValue
func NewSetNestedUnknown ¶
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 ¶
func (SetTypeOf[T]) ElementType ¶
ElementType returns the element type of this Set.
func (SetTypeOf[T]) ValueFromSet ¶
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 ¶
ValueFromTerraform converts a tftypes.Value to a SetValueOf.
type SetValue ¶
func NewSetNull ¶
func NewSetUnknown ¶
func NewSetValue ¶
func NewSetValueFrom ¶
func (*SetValue) SetUnknown ¶
func (SetValue) ToSetValue ¶
type SetValueOf ¶
func NewSetValueOfNull ¶
func NewSetValueOfNull[T any](ctx context.Context) SetValueOf[T]
NewSetValueOfNull returns a new SetValueOf with a null value.
func NewSetValueOfSlice ¶
func NewSetValueOfSlice[T any](ctx context.Context, elements []T) SetValueOf[T]
NewSetValueOfSlice returns a new SetValueOf with the given slice value.
func NewSetValueOfSlicePtr ¶
func NewSetValueOfSlicePtr[T any](ctx context.Context, elements []*T) SetValueOf[T]
NewSetValueOfSlicePtr returns a new SetValueOf with the given slice value.
func NewSetValueOfUnknown ¶
func NewSetValueOfUnknown[T any](ctx context.Context) SetValueOf[T]
NewSetValueOfUnknown returns a new SetValueOf with an unknown value.
func (SetValueOf[T]) Equal ¶
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 ¶
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 ¶
func (v SetValueOf[T]) IsKnown() bool
IsKnown returns true if the value is known.
func (*SetValueOf[T]) Set ¶
func (v *SetValueOf[T]) Set(ctx context.Context, elements []T) diag.Diagnostics
Set sets the value of this value.
func (*SetValueOf[T]) SetNull ¶
func (v *SetValueOf[T]) SetNull(ctx context.Context)
SetNull sets the value to null.
func (*SetValueOf[T]) SetUnknown ¶
func (v *SetValueOf[T]) SetUnknown(ctx context.Context)
SetUnknown sets the value to unknown.
func (SetValueOf[T]) ToSetValue ¶
func (v SetValueOf[T]) ToSetValue(_ context.Context) (basetypes.SetValue, diag.Diagnostics)
ToSetValue converts the given value to a SetValue.
type SingleNestedObjectTypeOf ¶
type SingleNestedObjectTypeOf[T any] struct { basetypes.ObjectType }
func NewSingleNestedObjectTypeOf ¶
func NewSingleNestedObjectTypeOf[T any](ctx context.Context) SingleNestedObjectTypeOf[T]
func (SingleNestedObjectTypeOf[T]) Equal ¶
func (t SingleNestedObjectTypeOf[T]) Equal(o attr.Type) bool
func (SingleNestedObjectTypeOf[T]) String ¶
func (t SingleNestedObjectTypeOf[T]) String() string
func (SingleNestedObjectTypeOf[T]) ValueFromObject ¶
func (t SingleNestedObjectTypeOf[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (SingleNestedObjectTypeOf[T]) ValueFromTerraform ¶
type SingleNestedObjectValueOf ¶
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 ¶
func NewSingleNestedObjectValueOf[T any](ctx context.Context, t *T) SingleNestedObjectValueOf[T]
func NewSingleNestedObjectValueOfNull ¶
func NewSingleNestedObjectValueOfNull[T any](ctx context.Context) SingleNestedObjectValueOf[T]
func NewSingleNestedObjectValueOfUnknown ¶
func NewSingleNestedObjectValueOfUnknown[T any](ctx context.Context) SingleNestedObjectValueOf[T]
func (SingleNestedObjectValueOf[T]) Equal ¶
func (v SingleNestedObjectValueOf[T]) Equal(o attr.Value) bool
func (SingleNestedObjectValueOf[T]) Get ¶
func (v SingleNestedObjectValueOf[T]) Get(ctx context.Context) (*T, diag.Diagnostics)
func (SingleNestedObjectValueOf[T]) IsKnown ¶
func (v SingleNestedObjectValueOf[T]) IsKnown() bool
IsKnown returns whether the value is known.
func (*SingleNestedObjectValueOf[T]) Set ¶
func (v *SingleNestedObjectValueOf[T]) Set(ctx context.Context, t *T) (diags diag.Diagnostics)
func (*SingleNestedObjectValueOf[T]) SetNull ¶
func (v *SingleNestedObjectValueOf[T]) SetNull(ctx context.Context)
func (*SingleNestedObjectValueOf[T]) SetUnknown ¶
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 ¶
func NewSingleNestedNull(attributeTypes map[string]attr.Type) SingleNestedValue
func NewSingleNestedUnknown ¶
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 ¶
func NewStringNull() StringValue
func NewStringPointerValue ¶
func NewStringPointerValue(s *string) StringValue
func NewStringUnknown ¶
func NewStringUnknown() StringValue
func NewStringValue ¶
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 ¶
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 ¶
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