Documentation
¶
Index ¶
- Constants
- func CompareStringListsIgnoringOrder(oldListStr, newListStr []string) bool
- func ExpandBoolPtr(data any) *bool
- func ExpandDuration(data any) (*time.Duration, error)
- func ExpandIPNet(raw string) (scw.IPNet, error)
- func ExpandInt32Ptr(data any) *int32
- func ExpandMapPtrStringString(data any) *map[string]string
- func ExpandMapStringString(data any) map[string]string
- func ExpandMapStringStringPtr(data any) map[string]*string
- func ExpandOrGenerateString(data any, prefix string) string
- func ExpandSize(data any) *scw.Size
- func ExpandSliceIDs(rawIDs any) []string
- func ExpandSliceIDsPtr(rawIDs any) *[]string
- func ExpandSliceStringPtr(data any) []*string
- func ExpandStringPtr(data any) *string
- func ExpandStringWithDefault(data any, defaultValue string) string
- func ExpandStrings(data any) []string
- func ExpandStringsOrEmpty(data any) []string
- func ExpandStringsPtr(data any) *[]string
- func ExpandTimePtr(i any) *time.Time
- func ExpandUint32Ptr(data any) *uint32
- func ExpandUint64Ptr(data any) *uint64
- func ExpandUpdatedStringPtr(data any) *string
- func ExpandUpdatedStringsPtr(data any) *[]string
- func FlattenBoolPtr(b *bool) any
- func FlattenDuration(duration *time.Duration) any
- func FlattenIPNet(ipNet scw.IPNet) (string, error)
- func FlattenIPPtr(ip *net.IP) any
- func FlattenInt32Ptr(i *int32) any
- func FlattenMap(m map[string]string) any
- func FlattenMapStringStringPtr(m map[string]*string) any
- func FlattenSize(size *scw.Size) any
- func FlattenSliceIDs(certificates []string, zone scw.Zone) any
- func FlattenSliceString(s []string) any
- func FlattenSliceStringPtr(s []*string) any
- func FlattenStringPtr(s *string) any
- func FlattenTime(date *time.Time) any
- func FlattenUint32Ptr(i *uint32) any
- func GetBool(d *schema.ResourceData, key string) any
- func GetMapValue[T any](m map[string]any, key string) T
- func NewRandomName(prefix string) string
- func SliceContainsString(slice []string, str string) bool
- func StringHashcode(s string) int
Constants ¶
const NetIPNil = "<nil>"
NetIPNil define the nil string return by (*net.IP).String()
Variables ¶
This section is empty.
Functions ¶
func CompareStringListsIgnoringOrder ¶ added in v2.39.0
func ExpandBoolPtr ¶
func ExpandInt32Ptr ¶
func ExpandMapStringString ¶
func ExpandOrGenerateString ¶
func ExpandSize ¶ added in v2.40.0
func ExpandSliceIDs ¶ added in v2.39.0
func ExpandSliceIDsPtr ¶
func ExpandSliceStringPtr ¶
func ExpandStringPtr ¶
func ExpandStringWithDefault ¶
func ExpandStrings ¶
func ExpandStringsOrEmpty ¶
func ExpandStringsPtr ¶
func ExpandTimePtr ¶ added in v2.39.0
ExpandTimePtr returns a time pointer for an RFC3339 time. It returns nil if time is not valid, you should use validateDate to validate field.
func ExpandUint32Ptr ¶
func ExpandUint64Ptr ¶ added in v2.52.0
func ExpandUpdatedStringPtr ¶
func ExpandUpdatedStringsPtr ¶
ExpandUpdatedStringsPtr expands a string slice but will default to an empty list. Should be used on schema update so emptying a list will update resource.
func FlattenBoolPtr ¶
func FlattenDuration ¶
func FlattenIPPtr ¶
func FlattenInt32Ptr ¶
func FlattenMap ¶
func FlattenSize ¶
func FlattenSliceString ¶
func FlattenSliceStringPtr ¶
func FlattenStringPtr ¶
func FlattenTime ¶
func FlattenUint32Ptr ¶
func GetMapValue ¶ added in v2.42.0
GetMapValue returns the value for a key from a map. returns zero value if key does not exist in map.
func NewRandomName ¶
NewRandomName returns a random name prefixed for terraform.
func SliceContainsString ¶ added in v2.39.0
func StringHashcode ¶ added in v2.39.0
StringHashcode hashes a string to a unique hashcode.
crc32 returns a uint32, but for our use we need and non-negative integer. Here we cast to an integer and invert it if the result is negative.
Types ¶
This section is empty.