Documentation ¶
Overview ¶
Package utils provides utility functions for the provider and resources.
Index ¶
- func AddHTTPStatusCode(props map[string]any, httpResponse *http.Response) map[string]any
- func Float32PtrToIntString(f *float32) string
- func GetStringListValue(ctx context.Context, list types.List, diags *diag.Diagnostics) []string
- func IsEmptyList(value types.List) bool
- func IsEmptyMap(value types.Map) bool
- func IsEmptyObject(value types.Object) bool
- type ProviderData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHTTPStatusCode ¶
If httpResponse is not nil, add the status code to the properties map.
func Float32PtrToIntString ¶
Some of the ids are returned as numbers, and our SDK client represents them as float32, but we need them as strings.
func GetStringListValue ¶
Converts a TF list of strings into Go list of strings.
func IsEmptyList ¶
Returns true if the list value is null, unknown, or empty.
func IsEmptyMap ¶
Returns true if the map value is null, unknown, or empty.
func IsEmptyObject ¶
Returns true if the object value is null or unknown.
Types ¶
Click to show internal directories.
Click to hide internal directories.