Documentation
¶
Index ¶
- func APIToDynamicJSON(ctx context.Context, attributePath tfpath.Path, source any, ...) (types.Dynamic, diag.Diagnostics)
- func APIToDynamicSiblingDiscriminator(ctx context.Context, attributePath path.Path, source any, selector string, ...) (types.Dynamic, diag.Diagnostics)
- func AtLeastOneOfAttributes(names ...string) validator.Object
- func AttributeToInterface(ctx context.Context, path path.Path, source attr.Value) (dest interface{}, diags diag.Diagnostics)
- func DeprecatedJSONEncoding(rule, example, deadline string) validator.Dynamic
- func DeprecatedSiblingDiscriminatorValue(rule, selector string, variants []JSONSchemaVariant, warning string) validator.Dynamic
- func DynamicSiblingDiscriminatorToAPI(ctx context.Context, attributePath path.Path, source types.Dynamic, ...) (any, diag.Diagnostics)
- func DynamicSiblingDiscriminatorUpdateToAPI(ctx context.Context, attributePath path.Path, source types.Dynamic, ...) (any, diag.Diagnostics)
- func DynamicToInterface(ctx context.Context, path path.Path, source types.Dynamic) (interface{}, diag.Diagnostics)
- func DynamicToStringMap(ctx context.Context, path path.Path, source types.Dynamic) (map[string]interface{}, diag.Diagnostics)
- func DynamicToStringMapSlice(ctx context.Context, path path.Path, source types.Dynamic) ([]map[string]interface{}, diag.Diagnostics)
- func ElementsToInterfaces(ctx context.Context, path path.Path, elements []attr.Value) (dest []interface{}, diags diag.Diagnostics)
- func ElementsToStringMap(ctx context.Context, path path.Path, attrs map[string]attr.Value) (dest map[string]interface{}, diags diag.Diagnostics)
- func ExactlyOneOfAttributes(names ...string) validator.Object
- func GroupStructuralUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, ...) (any, diag.Diagnostics)
- func JSONToStringMapSlice(attributePath tfpath.Path, value any) ([]map[string]any, diag.Diagnostics)
- func JSONValueToAPI(ctx context.Context, attributePath tfpath.Path, source attr.Value) (any, diag.Diagnostics)
- func ListToStringMapSlice(ctx context.Context, path path.Path, elements []attr.Value) (dest []map[string]interface{}, diags diag.Diagnostics)
- func ListValueToString(ctx context.Context, path path.Path, list types.List, delim string) (string, diag.Diagnostics)
- func ParseDecimalAttribute(text string) (exact *string, legacy float64, err error)
- func SchemaAttributeToInterface(ctx context.Context, path path.Path, source attr.Value) (dest interface{}, diags diag.Diagnostics)
- func TimeToStringType(ctx context.Context, path path.Path, source *time.Time, dest *types.String) error
- func ToDynamic(ctx context.Context, path path.Path, source any, plan attr.Value) (dest types.Dynamic, diags diag.Diagnostics)
- func ToList(ctx context.Context, path path.Path, source any, plan types.List) (types.List, diag.Diagnostics)
- func ToMap(ctx context.Context, path path.Path, source any, plan types.Map) (types.Map, diag.Diagnostics)
- func ToObject(ctx context.Context, path path.Path, source any, plan types.Object) (types.Object, diag.Diagnostics)
- func UngroupStructuralUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, ...) (any, diag.Diagnostics)
- func UnwrapDiscriminatedUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, ...) (any, diag.Diagnostics)
- func UnwrapSiblingDiscriminator(_ context.Context, attributePath path.Path, source any, discriminator string, ...) (any, diag.Diagnostics)
- func WrapDiscriminatedUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, ...) (any, diag.Diagnostics)
- func WrapSiblingDiscriminator(_ context.Context, attributePath path.Path, source any, discriminator string, ...) (any, diag.Diagnostics)
- type JSONSchemaVariant
- type Logger
- type SortedElementString
- type SortedElementStringType
- func (t SortedElementStringType) Equal(o attr.Type) bool
- func (t SortedElementStringType) String() string
- func (t SortedElementStringType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t SortedElementStringType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SortedElementStringType) ValueType(ctx context.Context) attr.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIToDynamicJSON ¶ added in v0.1.1009
func APIToDynamicSiblingDiscriminator ¶ added in v0.1.936
func AtLeastOneOfAttributes ¶ added in v0.1.867
func AttributeToInterface ¶
func DeprecatedJSONEncoding ¶ added in v0.1.1009
func DeprecatedSiblingDiscriminatorValue ¶ added in v0.1.936
func DeprecatedSiblingDiscriminatorValue(rule, selector string, variants []JSONSchemaVariant, warning string) validator.Dynamic
func DynamicSiblingDiscriminatorToAPI ¶ added in v0.1.936
func DynamicSiblingDiscriminatorUpdateToAPI ¶ added in v0.1.936
func DynamicToInterface ¶ added in v0.1.391
func DynamicToStringMap ¶
func DynamicToStringMapSlice ¶
func ElementsToInterfaces ¶ added in v0.1.867
func ElementsToStringMap ¶
func ExactlyOneOfAttributes ¶ added in v0.1.867
func GroupStructuralUnionAtPath ¶ added in v0.1.867
func GroupStructuralUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, variants []JSONSchemaVariant) (any, diag.Diagnostics)
func JSONToStringMapSlice ¶ added in v0.1.1009
func JSONValueToAPI ¶ added in v0.1.1009
func ListToStringMapSlice ¶
func ListValueToString ¶
func ParseDecimalAttribute ¶ added in v0.1.1114
ParseDecimalAttribute reads a string attribute that earlier provider versions parsed with strconv.ParseFloat before sending it as a number. Decimal text such as "1.5" or "2e-3" comes back unchanged as exact, so the API receives it without float rounding. Other spellings ParseFloat accepts, such as hexadecimal floats or digits separated by underscores, keep their former float64 value and rounding, with a nil exact. NaN, infinities and values ParseFloat rejects are errors.
func SchemaAttributeToInterface ¶ added in v0.1.867
func TimeToStringType ¶
func UngroupStructuralUnionAtPath ¶ added in v0.1.867
func UngroupStructuralUnionAtPath(ctx context.Context, attributePath path.Path, source any, names []string, variants []JSONSchemaVariant) (any, diag.Diagnostics)
func UnwrapDiscriminatedUnionAtPath ¶ added in v0.1.867
func UnwrapSiblingDiscriminator ¶ added in v0.1.936
func UnwrapSiblingDiscriminator(_ context.Context, attributePath path.Path, source any, discriminator string, variants []JSONSchemaVariant) (any, diag.Diagnostics)
func WrapDiscriminatedUnionAtPath ¶ added in v0.1.867
func WrapSiblingDiscriminator ¶ added in v0.1.936
func WrapSiblingDiscriminator(_ context.Context, attributePath path.Path, source any, discriminator string, variants []JSONSchemaVariant) (any, diag.Diagnostics)
Types ¶
type JSONSchemaVariant ¶ added in v0.1.867
type SortedElementString ¶ added in v0.1.184
type SortedElementString struct {
basetypes.StringValue
}
func SortedElementStringValue ¶ added in v0.1.184
func SortedElementStringValue(value string) SortedElementString
func (SortedElementString) StringSemanticEquals ¶ added in v0.1.184
func (v SortedElementString) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)
type SortedElementStringType ¶ added in v0.1.184
type SortedElementStringType struct {
basetypes.StringType
}
func (SortedElementStringType) Equal ¶ added in v0.1.184
func (t SortedElementStringType) Equal(o attr.Type) bool
func (SortedElementStringType) String ¶ added in v0.1.184
func (t SortedElementStringType) String() string
func (SortedElementStringType) ValueFromString ¶ added in v0.1.184
func (t SortedElementStringType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
func (SortedElementStringType) ValueFromTerraform ¶ added in v0.1.184
Click to show internal directories.
Click to hide internal directories.