flex

package
v0.0.0-...-11e5705 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(slice1 []string, slice2 []string) []string

Diff returns the elements in `slice1` that aren't in `slice2`.

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 ExpandStringSliceofPointers

func ExpandStringSliceofPointers(input []*string) []string

Takes a slice of pointers to string and returns a slice of strings

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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