Documentation ¶
Index ¶
- Constants
- func ExpandBoolMap(m map[string]interface{}) map[string]*bool
- func ExpandFloat64List(configured []interface{}) []*float64
- func ExpandInt32Map(m map[string]interface{}) map[string]int32
- func ExpandInt64List(configured []interface{}) []*int64
- func ExpandInt64Map(m map[string]interface{}) map[string]*int64
- func ExpandInt64Set(configured *schema.Set) []*int64
- func ExpandResourceId(id string, partCount int, allowEmptyPart bool) ([]string, error)
- func ExpandStringList(configured []interface{}) []*string
- func ExpandStringListEmpty(configured []interface{}) []*string
- func ExpandStringMap(m map[string]interface{}) map[string]*string
- func ExpandStringSet(configured *schema.Set) []*string
- func ExpandStringTimeList(configured []interface{}, format string) []*time.Time
- func ExpandStringValueList(configured []interface{}) []string
- func ExpandStringValueMap(m map[string]interface{}) map[string]string
- func ExpandStringValueSet(configured *schema.Set) []string
- func ExpandStringyValueList[E ~string](configured []any) []E
- func ExpandStringyValueSet[E ~string](configured *schema.Set) []E
- func FlattenFloat64List(list []*float64) []interface{}
- func FlattenInt64List(list []*int64) []interface{}
- func FlattenInt64Set(list []*int64) *schema.Set
- func FlattenResourceId(idParts []string, partCount int, allowEmptyPart bool) (string, error)
- func FlattenStringList(list []*string) []interface{}
- func FlattenStringSet(list []*string) *schema.Set
- func FlattenStringValueList(list []string) []interface{}
- func FlattenStringValueSet(list []string) *schema.Set
- func FlattenTimeStringList(list []*time.Time, format string) []interface{}
- func PointersMapToStringList(pointers map[string]*string) map[string]interface{}
- func ResourceIdPartCount(id string) int
- func StringToBoolValue(v *string) bool
- type Set
Constants ¶
const (
// A common separator to be used for creating resource Ids from a combination of attributes
ResourceIdSeparator = ","
)
Variables ¶
This section is empty.
Functions ¶
func ExpandBoolMap ¶
Expands a map of string to interface to a map of string to *bool
func ExpandFloat64List ¶
func ExpandFloat64List(configured []interface{}) []*float64
Takes the result of flatmap.Expand for an array of float64 and returns a []*float64
func ExpandInt32Map ¶
Expands a map of string to interface to a map of string to int32
func ExpandInt64List ¶
func ExpandInt64List(configured []interface{}) []*int64
Takes the result of flatmap.Expand for an array of int64 and returns a []*int64
func ExpandInt64Map ¶
Expands a map of string to interface to a map of string to *int64
func ExpandInt64Set ¶
Takes the result of schema.Set of strings and returns a []*int64
func ExpandResourceId ¶
Takes a string of resource attributes separated by the ResourceIdSeparator constant, an expected number of Id Parts, and a boolean specifying if empty parts are to be allowed Returns a list of the resource attributes strings used to construct the unique Id or an error message if the resource id does not parse properly
func ExpandStringList ¶
func ExpandStringList(configured []interface{}) []*string
ExpandStringList the result of flatmap.Expand for an array of strings and returns a []*string. Empty strings are skipped.
func ExpandStringListEmpty ¶
func ExpandStringListEmpty(configured []interface{}) []*string
ExpandStringListEmpty the result of flatmap. Expand for an array of strings and returns a []*string. Adds an empty element for every nil or uncastable.
func ExpandStringMap ¶
Expands a map of string to interface to a map of string to *string
func ExpandStringSet ¶
Takes the result of schema.Set of strings and returns a []*string
func ExpandStringTimeList ¶
Takes the result of flatmap.Expand for an array of strings and returns a []*time.Time
func ExpandStringValueList ¶
func ExpandStringValueList(configured []interface{}) []string
ExpandStringValueList takes the result of flatmap.Expand for an array of strings and returns a []string
func ExpandStringValueMap ¶
ExpandStringValueMap expands a string map of interfaces to a string map of strings
func ExpandStringValueSet ¶
func ExpandStringyValueList ¶
func ExpandStringyValueSet ¶
func FlattenFloat64List ¶
func FlattenFloat64List(list []*float64) []interface{}
Takes list of pointers to float64s. Expand to an array of raw floats and returns a []interface{} to keep compatibility w/ schema.NewSet
func FlattenInt64List ¶
func FlattenInt64List(list []*int64) []interface{}
Takes list of pointers to int64s. Expand to an array of raw ints and returns a []interface{} to keep compatibility w/ schema.NewSet
func FlattenInt64Set ¶
func FlattenResourceId ¶
Takes a list of the resource attributes as strings used to construct the unique Id, an expected number of Id Parts, and a boolean specifying if empty parts are to be allowed Returns a string of resource attributes separated by the ResourceIdSeparator constant or an error message if the id parts do not parse properly
func FlattenStringList ¶
func FlattenStringList(list []*string) []interface{}
Takes list of pointers to strings. Expand to an array of raw strings and returns a []interface{} to keep compatibility w/ schema.NewSetschema.NewSet
func FlattenStringSet ¶
func FlattenStringValueList ¶
func FlattenStringValueList(list []string) []interface{}
Takes list of strings. Expand to an array of raw strings and returns a []interface{} to keep compatibility w/ schema.NewSetschema.NewSet
func FlattenStringValueSet ¶
func FlattenTimeStringList ¶
Takes list of pointers to time.Time. Expand to an array of strings and returns a []interface{}
func PointersMapToStringList ¶
func ResourceIdPartCount ¶
Takes a string of resource attributes separated by the ResourceIdSeparator constant returns the number of parts
func StringToBoolValue ¶
StringToBoolValue converts a string pointer to a Go bool value. Only the string "true" is converted to true, all other values return false.
Types ¶
type Set ¶
type Set[T comparable] []T
func (Set[T]) Difference ¶
Difference find the elements in two sets that are not similar.