# Functions
AttributeValueLength attempts to determine the "length" of an attribute value, for types where that value has significance.
AttributeValueToBigFloat accepts either a literal or pointer to a concrete attr.Value implementation, attempting to return a *big.Float instance of its value.
AttributeValueToFloat64 accepts either a literal or pointer to a concrete attr.Value implementation, attempting to to return a float64 representation of its value.
AttributeValueToInt64 accepts either a literal or pointer to a concrete attr.Value implementation, attempting to return an int64 representation of its value.
AttributeValueToString will attempt to execute the appropriate AttributeStringerFunc from the ones registered.
AttributeValueToStrings attempts to convert the provided attr.Value into a slice of strings.
BoolToBoolValue takes a bool and wraps it up as a types.Bool.
BoolValueToBool accepts either a types.Bool or *types.Bool and extracts the raw bool value within.
BoolValueToBoolPtr accepts either a types.Bool or *types.Bool, extracting the raw bool value within and returning a pointer to a copy of that value
If the Value is unknown or null, a nil is returned.
BoolValueToString accepts an instance of either types.Bool or *types.Bool, attempting to convert the value to a string.
BytesToStringValue takes a byte slice and wraps it as a types.String.
Float32ToFloat64Value takes a float32 and wraps it up as a types.Float64.
Float32ToNumberValue takes a float32 and wraps it up as a types.Number.
Float64ToFloat64Value takes a float64 and wraps it up as a types.Float64.
Float64ToNumberValue takes a float64 and wraps it up as a types.Number.
Float64ValueToFloat32 accepts either a types.Float64 or *types.Float64, returning a float32 representation of the raw float64 value.
Float64ValueToFloat64 accepts either a types.Float64 or *types.Float64, returning the raw float64 value within.
Float64ValueToString accepts an instance of either types.Float64 or *types.Float64, attempting to convert the value to a string.
FormatAttributePaths takes one or more *tftypes.AttributePaths and returns a pretty-printable string.
FormatAttributePathSteps takes one or more path steps and joins them together with ".".
FormatPathPaths takes one or more path.Path types and returns a pretty-printable string.
FormatPathPathSteps takes one or more path steps and joins them together with ".".
GoNumberToString is a laziness helper to convert several types to a usable string value.
Int64ListToInts accepts an instance of either types.List or *types.List where ElemType MUST be types.Int64Type, returning a slice of ints of the value of each element.
Int64SetToInts accepts an instance of either types.Set or *types.set where ElemType MUST be types.Int64Type returning a slice of ints of the value of each element.
Int64ToInt64Value takes an int64 and wraps it up as a types.Int64.
Int64ToNumberValue takes an int64 and wraps it up as a types.Number.
Int64ValueToInt accepts either a types.Int64 or *types.Int64, returning an int representation of the value within.
Int64ValueToInt64 accepts either a types.Int64 or *types.Int64, returning the raw int64 value within.
Int64ValueToIntPtr accepts either a types.Int64 or *types.Int64, returning a pointer to a copy of the int representation of the value within
If the Value is unknown or null, a nil is returned.
Int64ValueToString accepts an instance of either types.Int64 or *types.Int64, attempting to convert the value to a string.
IntPtrToInt64Value takes an *int and wraps it up as a types.Int64
If the go value is nil, Null will be true on the outgoing attr.Value type.
IntsToInt64List takes a slice of ints and creates a typed types.List with a ElemType of types.Int64Type and each value of Elems being an instance of types.Int64
If nullOnEmpty parameter is `true`, sets the Null field on the returned types.List to `true`.
IntsToInt64Set takes a slice of ints and creates a typed types.Set with an ElemType of types.Int64Type and each value of Elems being an instance of types.Int64
If nullOnEmpty parameter is `true`, sets the Null field on the returned types.Set to `true`.
IntToInt64Value takes an int and wraps it up as a types.Int64.
IntToNumberValue takes an int and wraps it up as a types.Number.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LengthOfListValue returns the number of elements in the List attribute.
LengthOfMapValue returns the number of elements in the Map attribute.
LengthOfSetValue returns the number of elements in the Set attribute.
LengthOfStringValue returns the number of bytes in the String attribute.
NumberListToInts accepts either an instance of types.List or *types.List where ElemType MUST be types.NumberType returning a slice of ints of the value of each element.
NumberSetToInts accepts either an instance of types.Set or *types.Set where ElemType MUST be types.NumberType returning a slice of ints of the value of each element.
NumberValueToBigFloat accepts either a types.Number or *types.Number, returning the raw *big.Float value.
NumberValueToFloat64 accepts either a types.Number or *types.Number, returning a float64 representation of the *big.Float value within.
NumberValueToInt accepts either a types.Number or *types.Number, returning an int representation of the *big.Float value within.
NumberValueToInt64 accepts either a types.Number or *types.Number, returning an int64 representation of the *big.Float value within.
NumberValueToString accepts an instance of either types.Number or *types.Number, attempting to convert the value to a string.
StringListToStrings accepts an instance of either types.List or *types.List where ElemType MUST be types.StringType, returning a slice of strings of the value of each element.
StringPtrToStringValue takes a *string and wraps it up as a types.String If the go value is nil, Null will be true on the outgoing attr.Value type.
StringSetToStrings accepts an instance of either types.Set or *types.Set where ElemType MUST be types.StringType, returning a slice of strings of the value of each element.
StringToStringValue takes a string and wraps it up as a types.String.
StringValueToBytes accepts an instance of either types.String or *types.String, returning the raw string value cast to a byte slice.
StringValueToFloat64 accepts either a types.String or *types.string, attempting to parse the value as a float64.
StringValueToInt64 accepts either a types.String or *types.String, attempting to parse the value as an int64.
StringValueToString accepts an instance of either types.String or *types.String, returning the raw string value.
StringValueToStringPtr accepts an instance of either types.String or *types.String, returning a pointer to a copy of the raw string value
If the Value is unknown or null, a nil is returned.
TestAttributeValueState - Determine the state of the attribute value
An Attribute Value can have one of 3 main states: 1.
ValueToBoolType ensures we have a types.Bool literal.
ValueToFloat64Type ensures we have a types.Float64 literal.
ValueToInt64Type ensures we have a types.Int64 literal.
ValueToListType ensures we have a types.List literal.
ValueToMapType ensures we have a types.Map literal.
ValueToNumberType ensures we have a types.Number literal.
ValueToObjectType ensures we have a types.Object literal.
ValueToSetType ensures we have a types.Set literal.
ValueToStringType ensures we have a types.String literal.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author