Documentation ¶
Index ¶
- func StructToAttributes[T any](ctx context.Context) (map[string]attr.Type, diag.Diagnostics)
- type List
- func (v List[T]) Equal(o attr.Value) bool
- func (v List[T]) KnownValue(ctx context.Context, values any) ListLike
- func (v List[T]) NullValue(ctx context.Context) ListLike
- func (v List[T]) Type(ctx context.Context) attr.Type
- func (v List[T]) UnknownValue(ctx context.Context) ListLike
- func (v List[T]) Value(ctx context.Context) ([]T, diag.Diagnostics)
- func (v List[T]) ValueAttr(ctx context.Context) (any, diag.Diagnostics)
- type ListLike
- type ListType
- func (t ListType[T]) Equal(o attr.Type) bool
- func (t ListType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t ListType[T]) String() string
- func (t ListType[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
- func (t ListType[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ListType[T]) ValueType(ctx context.Context) attr.Value
- type Map
- func (v Map[T]) Equal(o attr.Value) bool
- func (v Map[T]) KnownValue(ctx context.Context, values any) MapLike
- func (v Map[T]) NullValue(ctx context.Context) MapLike
- func (v Map[T]) Type(ctx context.Context) attr.Type
- func (v Map[T]) UnknownValue(ctx context.Context) MapLike
- func (v Map[T]) Value(ctx context.Context) (map[string]T, diag.Diagnostics)
- func (v Map[T]) ValueAttr(ctx context.Context) (any, diag.Diagnostics)
- type MapLike
- type MapType
- func (t MapType[T]) Equal(o attr.Type) bool
- func (t MapType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t MapType[T]) String() string
- func (t MapType[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
- func (t MapType[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t MapType[T]) ValueType(ctx context.Context) attr.Value
- type NestedObject
- func (v NestedObject[T]) Equal(o attr.Value) bool
- func (v NestedObject[T]) KnownValue(ctx context.Context, t any) NestedObjectLike
- func (v NestedObject[T]) NullValue(ctx context.Context) NestedObjectLike
- func (v NestedObject[T]) Type(ctx context.Context) attr.Type
- func (v NestedObject[T]) UnknownValue(ctx context.Context) NestedObjectLike
- func (v NestedObject[T]) Value(ctx context.Context) (*T, diag.Diagnostics)
- func (v NestedObject[T]) ValueAny(ctx context.Context) (any, diag.Diagnostics)
- type NestedObjectLike
- type NestedObjectList
- func NewObjectList[T any](ctx context.Context, values []T) (NestedObjectList[T], diag.Diagnostics)
- func NewObjectListFromAttributes[T any](ctx context.Context, values []attr.Value) (NestedObjectList[T], diag.Diagnostics)
- func NewObjectListMust[T any](ctx context.Context, values []T) NestedObjectList[T]
- func NullObjectList[T any](ctx context.Context) NestedObjectList[T]
- func UnknownObjectList[T any](ctx context.Context) NestedObjectList[T]
- func (v NestedObjectList[T]) AsStructSlice(ctx context.Context) (any, diag.Diagnostics)
- func (v NestedObjectList[T]) AsStructSliceT(ctx context.Context) ([]T, diag.Diagnostics)
- func (v NestedObjectList[T]) Equal(o attr.Value) bool
- func (v NestedObjectList[T]) KnownValue(ctx context.Context, anyValues any) NestedObjectListLike
- func (v NestedObjectList[T]) NullValue(ctx context.Context) NestedObjectListLike
- func (v NestedObjectList[T]) Type(ctx context.Context) attr.Type
- func (v NestedObjectList[T]) UnknownValue(ctx context.Context) NestedObjectListLike
- func (v NestedObjectList[T]) Value(ctx context.Context) ([]attr.Value, diag.Diagnostics)
- type NestedObjectListLike
- type NestedObjectListType
- func (t NestedObjectListType[T]) Equal(o attr.Type) bool
- func (t NestedObjectListType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t NestedObjectListType[T]) String() string
- func (t NestedObjectListType[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
- func (t NestedObjectListType[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NestedObjectListType[T]) ValueType(ctx context.Context) attr.Value
- type NestedObjectMap
- func NewObjectMap[T any](ctx context.Context, values map[string]T) (NestedObjectMap[T], diag.Diagnostics)
- func NewObjectMapFromAttributes[T any](ctx context.Context, values map[string]attr.Value) (NestedObjectMap[T], diag.Diagnostics)
- func NewObjectMapMust[T any](ctx context.Context, values map[string]T) NestedObjectMap[T]
- func NullObjectMap[T any](ctx context.Context) NestedObjectMap[T]
- func UnknownObjectMap[T any](ctx context.Context) NestedObjectMap[T]
- func (v NestedObjectMap[T]) AsStructMap(ctx context.Context) (any, diag.Diagnostics)
- func (v NestedObjectMap[T]) AsStructMapT(ctx context.Context) (map[string]T, diag.Diagnostics)
- func (v NestedObjectMap[T]) Equal(o attr.Value) bool
- func (v NestedObjectMap[T]) KnownValue(ctx context.Context, anyValues any) NestedObjectMapLike
- func (v NestedObjectMap[T]) NullValue(ctx context.Context) NestedObjectMapLike
- func (v NestedObjectMap[T]) Type(ctx context.Context) attr.Type
- func (v NestedObjectMap[T]) UnknownValue(ctx context.Context) NestedObjectMapLike
- func (v NestedObjectMap[T]) Value(ctx context.Context) (map[string]attr.Value, diag.Diagnostics)
- type NestedObjectMapLike
- type NestedObjectMapType
- func (t NestedObjectMapType[T]) Equal(o attr.Type) bool
- func (t NestedObjectMapType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t NestedObjectMapType[T]) String() string
- func (t NestedObjectMapType[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
- func (t NestedObjectMapType[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NestedObjectMapType[T]) ValueType(ctx context.Context) attr.Value
- type NestedObjectSet
- func NewObjectSet[T any](ctx context.Context, values []T) (NestedObjectSet[T], diag.Diagnostics)
- func NewObjectSetFromAttributes[T any](ctx context.Context, values []attr.Value) (NestedObjectSet[T], diag.Diagnostics)
- func NewObjectSetMust[T any](ctx context.Context, values []T) NestedObjectSet[T]
- func NullObjectSet[T any](ctx context.Context) NestedObjectSet[T]
- func UnknownObjectSet[T any](ctx context.Context) NestedObjectSet[T]
- func (v NestedObjectSet[T]) AsStructSlice(ctx context.Context) (any, diag.Diagnostics)
- func (v NestedObjectSet[T]) AsStructSliceT(ctx context.Context) ([]T, diag.Diagnostics)
- func (v NestedObjectSet[T]) Equal(o attr.Value) bool
- func (v NestedObjectSet[T]) KnownValue(ctx context.Context, anyValues any) NestedObjectListLike
- func (v NestedObjectSet[T]) NullValue(ctx context.Context) NestedObjectListLike
- func (v NestedObjectSet[T]) Type(ctx context.Context) attr.Type
- func (v NestedObjectSet[T]) UnknownValue(ctx context.Context) NestedObjectListLike
- func (v NestedObjectSet[T]) Value(ctx context.Context) ([]attr.Value, diag.Diagnostics)
- type NestedObjectSetType
- func (t NestedObjectSetType[T]) Equal(o attr.Type) bool
- func (t NestedObjectSetType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t NestedObjectSetType[T]) String() string
- func (t NestedObjectSetType[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
- func (t NestedObjectSetType[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NestedObjectSetType[T]) ValueType(ctx context.Context) attr.Value
- type NestedObjectType
- func (t NestedObjectType[T]) Equal(o attr.Type) bool
- func (t NestedObjectType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t NestedObjectType[T]) String() string
- func (t NestedObjectType[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t NestedObjectType[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NestedObjectType[T]) ValueType(ctx context.Context) attr.Value
- type Set
- func (v Set[T]) Equal(o attr.Value) bool
- func (v Set[T]) KnownValue(ctx context.Context, values any) ListLike
- func (v Set[T]) NullValue(ctx context.Context) ListLike
- func (v Set[T]) Type(ctx context.Context) attr.Type
- func (v Set[T]) UnknownValue(ctx context.Context) ListLike
- func (v Set[T]) Value(ctx context.Context) ([]T, diag.Diagnostics)
- func (v Set[T]) ValueAttr(ctx context.Context) (any, diag.Diagnostics)
- type SetType
- func (t SetType[T]) Equal(o attr.Type) bool
- func (t SetType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
- func (t SetType[T]) String() string
- func (t SetType[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
- func (t SetType[T]) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SetType[T]) ValueType(ctx context.Context) attr.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructToAttributes ¶
Types ¶
type ListType ¶
ListType represents a basetypes.ListType that declares the type of the element statically.
func (ListType[T]) ValueFromList ¶
func (t ListType[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
func (ListType[T]) ValueFromTerraform ¶
type MapType ¶
MapType represents a basetypes.MapType that declares the type of the element statically.
func (MapType[T]) ValueFromMap ¶
func (t MapType[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
func (MapType[T]) ValueFromTerraform ¶
type NestedObject ¶
type NestedObject[T any] struct { basetypes.ObjectValue // contains filtered or unexported fields }
NestedObject represents a basetypes.ObjectValue that is defined by a struct.
func NewObject ¶
func NewObject[T any](ctx context.Context, t *T) (NestedObject[T], diag.Diagnostics)
func NewObjectMust ¶
func NewObjectMust[T any](ctx context.Context, t *T) NestedObject[T]
func NullObject ¶
func NullObject[T any](ctx context.Context) NestedObject[T]
func UnknownObject ¶
func UnknownObject[T any](ctx context.Context) NestedObject[T]
func (NestedObject[T]) KnownValue ¶
func (v NestedObject[T]) KnownValue(ctx context.Context, t any) NestedObjectLike
func (NestedObject[T]) NullValue ¶
func (v NestedObject[T]) NullValue(ctx context.Context) NestedObjectLike
func (NestedObject[T]) UnknownValue ¶
func (v NestedObject[T]) UnknownValue(ctx context.Context) NestedObjectLike
func (NestedObject[T]) Value ¶
func (v NestedObject[T]) Value(ctx context.Context) (*T, diag.Diagnostics)
func (NestedObject[T]) ValueAny ¶
func (v NestedObject[T]) ValueAny(ctx context.Context) (any, diag.Diagnostics)
type NestedObjectLike ¶
type NestedObjectLike interface { basetypes.ObjectValuable ValueAny(ctx context.Context) (any, diag.Diagnostics) NullValue(ctx context.Context) NestedObjectLike UnknownValue(ctx context.Context) NestedObjectLike KnownValue(ctx context.Context, t any) NestedObjectLike }
type NestedObjectList ¶
type NestedObjectList[T any] struct { basetypes.ListValue // contains filtered or unexported fields }
NestedObjectList represents a basetypes.ListValue that is defined by a struct.
func NewObjectList ¶
func NewObjectList[T any](ctx context.Context, values []T) (NestedObjectList[T], diag.Diagnostics)
func NewObjectListFromAttributes ¶
func NewObjectListFromAttributes[T any](ctx context.Context, values []attr.Value) (NestedObjectList[T], diag.Diagnostics)
func NewObjectListMust ¶
func NewObjectListMust[T any](ctx context.Context, values []T) NestedObjectList[T]
func NullObjectList ¶
func NullObjectList[T any](ctx context.Context) NestedObjectList[T]
func UnknownObjectList ¶
func UnknownObjectList[T any](ctx context.Context) NestedObjectList[T]
func (NestedObjectList[T]) AsStructSlice ¶
func (v NestedObjectList[T]) AsStructSlice(ctx context.Context) (any, diag.Diagnostics)
func (NestedObjectList[T]) AsStructSliceT ¶
func (v NestedObjectList[T]) AsStructSliceT(ctx context.Context) ([]T, diag.Diagnostics)
func (NestedObjectList[T]) KnownValue ¶
func (v NestedObjectList[T]) KnownValue(ctx context.Context, anyValues any) NestedObjectListLike
func (NestedObjectList[T]) NullValue ¶
func (v NestedObjectList[T]) NullValue(ctx context.Context) NestedObjectListLike
func (NestedObjectList[T]) UnknownValue ¶
func (v NestedObjectList[T]) UnknownValue(ctx context.Context) NestedObjectListLike
func (NestedObjectList[T]) Value ¶
func (v NestedObjectList[T]) Value(ctx context.Context) ([]attr.Value, diag.Diagnostics)
type NestedObjectListLike ¶
type NestedObjectListLike interface { AsStructSlice(ctx context.Context) (any, diag.Diagnostics) NullValue(ctx context.Context) NestedObjectListLike UnknownValue(ctx context.Context) NestedObjectListLike KnownValue(ctx context.Context, T any) NestedObjectListLike }
type NestedObjectListType ¶
NestedObjectListType represents a basetypes.ListType that declares the type of the nested data statically.
func NewNestedObjectListType ¶
func NewNestedObjectListType[T any](ctx context.Context) NestedObjectListType[T]
func (NestedObjectListType[T]) NullValue ¶
func (t NestedObjectListType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (NestedObjectListType[T]) String ¶
func (t NestedObjectListType[T]) String() string
func (NestedObjectListType[T]) ValueFromList ¶
func (t NestedObjectListType[T]) ValueFromList(ctx context.Context, in basetypes.ListValue) (basetypes.ListValuable, diag.Diagnostics)
func (NestedObjectListType[T]) ValueFromTerraform ¶
type NestedObjectMap ¶
NestedObjectMap represents a basetypes.MapValue that is defined by a struct.
func NewObjectMap ¶
func NewObjectMap[T any](ctx context.Context, values map[string]T) (NestedObjectMap[T], diag.Diagnostics)
func NewObjectMapFromAttributes ¶
func NewObjectMapFromAttributes[T any](ctx context.Context, values map[string]attr.Value) (NestedObjectMap[T], diag.Diagnostics)
func NewObjectMapMust ¶
func NewObjectMapMust[T any](ctx context.Context, values map[string]T) NestedObjectMap[T]
func NullObjectMap ¶
func NullObjectMap[T any](ctx context.Context) NestedObjectMap[T]
func UnknownObjectMap ¶
func UnknownObjectMap[T any](ctx context.Context) NestedObjectMap[T]
func (NestedObjectMap[T]) AsStructMap ¶
func (v NestedObjectMap[T]) AsStructMap(ctx context.Context) (any, diag.Diagnostics)
func (NestedObjectMap[T]) AsStructMapT ¶
func (v NestedObjectMap[T]) AsStructMapT(ctx context.Context) (map[string]T, diag.Diagnostics)
func (NestedObjectMap[T]) KnownValue ¶
func (v NestedObjectMap[T]) KnownValue(ctx context.Context, anyValues any) NestedObjectMapLike
func (NestedObjectMap[T]) NullValue ¶
func (v NestedObjectMap[T]) NullValue(ctx context.Context) NestedObjectMapLike
func (NestedObjectMap[T]) UnknownValue ¶
func (v NestedObjectMap[T]) UnknownValue(ctx context.Context) NestedObjectMapLike
func (NestedObjectMap[T]) Value ¶
func (v NestedObjectMap[T]) Value(ctx context.Context) (map[string]attr.Value, diag.Diagnostics)
type NestedObjectMapLike ¶
type NestedObjectMapLike interface { AsStructMap(ctx context.Context) (any, diag.Diagnostics) NullValue(ctx context.Context) NestedObjectMapLike UnknownValue(ctx context.Context) NestedObjectMapLike KnownValue(ctx context.Context, T any) NestedObjectMapLike }
type NestedObjectMapType ¶
NestedObjectMapType represents a basetypes.MapType that declares the type of the nested data statically.
func NewNestedObjectMapType ¶
func NewNestedObjectMapType[T any](ctx context.Context) NestedObjectMapType[T]
func (NestedObjectMapType[T]) NullValue ¶
func (t NestedObjectMapType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (NestedObjectMapType[T]) String ¶
func (t NestedObjectMapType[T]) String() string
func (NestedObjectMapType[T]) ValueFromMap ¶
func (t NestedObjectMapType[T]) ValueFromMap(ctx context.Context, in basetypes.MapValue) (basetypes.MapValuable, diag.Diagnostics)
func (NestedObjectMapType[T]) ValueFromTerraform ¶
type NestedObjectSet ¶
NestedObjectSet represents a basetypes.SetValue that is defined by a struct.
func NewObjectSet ¶
func NewObjectSet[T any](ctx context.Context, values []T) (NestedObjectSet[T], diag.Diagnostics)
func NewObjectSetFromAttributes ¶
func NewObjectSetFromAttributes[T any](ctx context.Context, values []attr.Value) (NestedObjectSet[T], diag.Diagnostics)
func NewObjectSetMust ¶
func NewObjectSetMust[T any](ctx context.Context, values []T) NestedObjectSet[T]
func NullObjectSet ¶
func NullObjectSet[T any](ctx context.Context) NestedObjectSet[T]
func UnknownObjectSet ¶
func UnknownObjectSet[T any](ctx context.Context) NestedObjectSet[T]
func (NestedObjectSet[T]) AsStructSlice ¶
func (v NestedObjectSet[T]) AsStructSlice(ctx context.Context) (any, diag.Diagnostics)
func (NestedObjectSet[T]) AsStructSliceT ¶
func (v NestedObjectSet[T]) AsStructSliceT(ctx context.Context) ([]T, diag.Diagnostics)
func (NestedObjectSet[T]) KnownValue ¶
func (v NestedObjectSet[T]) KnownValue(ctx context.Context, anyValues any) NestedObjectListLike
func (NestedObjectSet[T]) NullValue ¶
func (v NestedObjectSet[T]) NullValue(ctx context.Context) NestedObjectListLike
func (NestedObjectSet[T]) UnknownValue ¶
func (v NestedObjectSet[T]) UnknownValue(ctx context.Context) NestedObjectListLike
func (NestedObjectSet[T]) Value ¶
func (v NestedObjectSet[T]) Value(ctx context.Context) ([]attr.Value, diag.Diagnostics)
type NestedObjectSetType ¶
NestedObjectSetType represents a basetypes.SetType that declares the type of the nested data statically.
func NewNestedObjectSetType ¶
func NewNestedObjectSetType[T any](ctx context.Context) NestedObjectSetType[T]
func (NestedObjectSetType[T]) NullValue ¶
func (t NestedObjectSetType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (NestedObjectSetType[T]) String ¶
func (t NestedObjectSetType[T]) String() string
func (NestedObjectSetType[T]) ValueFromSet ¶
func (t NestedObjectSetType[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)
func (NestedObjectSetType[T]) ValueFromTerraform ¶
type NestedObjectType ¶
type NestedObjectType[T any] struct { basetypes.ObjectType }
NestedObjectType represents a basetypes.ObjectType that is defined by a struct.
func NewNestedObjectType ¶
func NewNestedObjectType[T any](ctx context.Context) NestedObjectType[T]
func (NestedObjectType[T]) NullValue ¶
func (t NestedObjectType[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics)
func (NestedObjectType[T]) String ¶
func (t NestedObjectType[T]) String() string
func (NestedObjectType[T]) ValueFromObject ¶
func (t NestedObjectType[T]) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (NestedObjectType[T]) ValueFromTerraform ¶
type SetType ¶
SetType represents a basetypes.SetType that declares the type of the element statically.
func (SetType[T]) ValueFromSet ¶
func (t SetType[T]) ValueFromSet(ctx context.Context, in basetypes.SetValue) (basetypes.SetValuable, diag.Diagnostics)