Documentation ¶
Index ¶
- Constants
- func CompareStringListsIgnoringOrder(oldListStr, newListStr []string) bool
- func ExpandBoolPtr(data interface{}) *bool
- func ExpandDuration(data interface{}) (*time.Duration, error)
- func ExpandIPNet(raw string) (scw.IPNet, error)
- func ExpandInt32Ptr(data interface{}) *int32
- func ExpandMapPtrStringString(data interface{}) *map[string]string
- func ExpandMapStringString(data any) map[string]string
- func ExpandMapStringStringPtr(data interface{}) map[string]*string
- func ExpandOrGenerateString(data interface{}, prefix string) string
- func ExpandSize(data interface{}) *scw.Size
- func ExpandSliceIDs(rawIDs interface{}) []string
- func ExpandSliceIDsPtr(rawIDs interface{}) *[]string
- func ExpandSliceStringPtr(data interface{}) []*string
- func ExpandStringPtr(data interface{}) *string
- func ExpandStringWithDefault(data interface{}, defaultValue string) string
- func ExpandStrings(data interface{}) []string
- func ExpandStringsOrEmpty(data interface{}) []string
- func ExpandStringsPtr(data interface{}) *[]string
- func ExpandTimePtr(i interface{}) *time.Time
- func ExpandUint32Ptr(data interface{}) *uint32
- func ExpandUpdatedStringPtr(data interface{}) *string
- func ExpandUpdatedStringsPtr(data interface{}) *[]string
- func FlattenBoolPtr(b *bool) interface{}
- func FlattenDuration(duration *time.Duration) interface{}
- func FlattenIPNet(ipNet scw.IPNet) (string, error)
- func FlattenIPPtr(ip *net.IP) interface{}
- func FlattenInt32Ptr(i *int32) interface{}
- func FlattenMap(m map[string]string) interface{}
- func FlattenMapStringStringPtr(m map[string]*string) interface{}
- func FlattenSize(size *scw.Size) interface{}
- func FlattenSliceIDs(certificates []string, zone scw.Zone) interface{}
- func FlattenSliceString(s []string) interface{}
- func FlattenSliceStringPtr(s []*string) interface{}
- func FlattenStringPtr(s *string) interface{}
- func FlattenTime(date *time.Time) interface{}
- func FlattenUint32Ptr(i *uint32) interface{}
- func GetBool(d *schema.ResourceData, key string) interface{}
- 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 ExpandBoolPtr(data interface{}) *bool
func ExpandDuration ¶
func ExpandInt32Ptr ¶
func ExpandInt32Ptr(data interface{}) *int32
func ExpandMapStringString ¶
func ExpandOrGenerateString ¶
func ExpandSize ¶ added in v2.40.0
func ExpandSliceIDs ¶ added in v2.39.0
func ExpandSliceIDs(rawIDs interface{}) []string
func ExpandSliceIDsPtr ¶
func ExpandSliceIDsPtr(rawIDs interface{}) *[]string
func ExpandSliceStringPtr ¶
func ExpandSliceStringPtr(data interface{}) []*string
func ExpandStringPtr ¶
func ExpandStringPtr(data interface{}) *string
func ExpandStringWithDefault ¶
func ExpandStrings ¶
func ExpandStrings(data interface{}) []string
func ExpandStringsOrEmpty ¶
func ExpandStringsOrEmpty(data interface{}) []string
func ExpandStringsPtr ¶
func ExpandStringsPtr(data interface{}) *[]string
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 ExpandUint32Ptr(data interface{}) *uint32
func ExpandUpdatedStringPtr ¶
func ExpandUpdatedStringPtr(data interface{}) *string
func ExpandUpdatedStringsPtr ¶
func ExpandUpdatedStringsPtr(data interface{}) *[]string
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 FlattenBoolPtr(b *bool) interface{}
func FlattenDuration ¶
func FlattenIPPtr ¶
func FlattenInt32Ptr ¶
func FlattenInt32Ptr(i *int32) interface{}
func FlattenMap ¶
func FlattenSize ¶
func FlattenSliceIDs ¶
func FlattenSliceString ¶
func FlattenSliceString(s []string) interface{}
func FlattenSliceStringPtr ¶
func FlattenSliceStringPtr(s []*string) interface{}
func FlattenStringPtr ¶
func FlattenStringPtr(s *string) interface{}
func FlattenTime ¶
func FlattenUint32Ptr ¶
func FlattenUint32Ptr(i *uint32) interface{}
func GetBool ¶ added in v2.39.0
func GetBool(d *schema.ResourceData, key string) interface{}
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.