utils

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAsSubstring

func ContainsAsSubstring(slice []string, element string) bool

func ContainsEitherSubstring

func ContainsEitherSubstring(slice []string, elements []string) bool

func FromListValueToStringList

func FromListValueToStringList(tl types.List) []string

func FromSetValueToStringList

func FromSetValueToStringList(tl types.Set) []string

func GetCdpClientForResource

func GetCdpClientForResource(req resource.ConfigureRequest, resp *resource.ConfigureResponse) *cdp.Client

func GetMapFromSingleItemList

func GetMapFromSingleItemList(d *schema.ResourceData, name string) (map[string]interface{}, error)

func GetMapFromSingleItemListInMap

func GetMapFromSingleItemListInMap(d map[string]interface{}, name string) (map[string]interface{}, error)

func ToBaseTypesStringMap

func ToBaseTypesStringMap(in map[string]string) map[string]types.String

func ToListToBaseType

func ToListToBaseType(in []string) types.List

func ToListToBaseTypesStringList

func ToListToBaseTypesStringList(in []string) []types.String

func ToStringList

func ToStringList(configured []interface{}) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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