flex

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandBoolMap

func ExpandBoolMap(m map[string]interface{}) map[string]*bool

Expands a map of string to interface to a map of string to *bool

func ExpandInt64List

func ExpandInt64List(configured []interface{}) []*int64

Takes the result of flatmap.Expand for an array of int64 and returns a []*int64

func ExpandInt64Set

func ExpandInt64Set(configured *schema.Set) []*int64

Takes the result of schema.Set of strings and returns a []*int64

func ExpandStringList

func ExpandStringList(configured []interface{}) []*string

Takes the result of flatmap.Expand for an array of strings and returns a []*string

func ExpandStringMap

func ExpandStringMap(m map[string]interface{}) map[string]*string

Expands a map of string to interface to a map of string to *string

func ExpandStringSet

func ExpandStringSet(configured *schema.Set) []*string

Takes the result of schema.Set of strings and returns a []*string

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

func ExpandStringValueMap(m map[string]interface{}) map[string]string

ExpandStringValueMap expands a string map of interfaces to a string map of strings

func ExpandStringValueSet

func ExpandStringValueSet(configured *schema.Set) []string

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 FlattenInt64Set(list []*int64) *schema.Set

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 FlattenStringSet(list []*string) *schema.Set

func FlattenStringValueList

func FlattenStringValueList(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 FlattenStringValueSet

func FlattenStringValueSet(list []string) *schema.Set

func PointersMapToStringList

func PointersMapToStringList(pointers map[string]*string) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL