utils

package
v1.44.1-0...-aa8b3ee Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeIfNot

func Base64EncodeIfNot(data string) string

Base64EncodeIfNot encodes data if the input isn't already encoded using base64.StdEncoding.EncodeToString. If the input is already base64 encoded, return the original input unchanged.

func Bool

func Bool(input bool) *bool

Bool Deprecated: please use the `To` function in the `pointer` package

func ExpandFloatRangeSlice

func ExpandFloatRangeSlice(input []interface{}) *[][]float64

func ExpandFloatSlice

func ExpandFloatSlice(input []interface{}) *[]float64

func ExpandInt32Slice

func ExpandInt32Slice(input []interface{}) *[]int32

func ExpandInt64Slice

func ExpandInt64Slice(input []interface{}) *[]int64

func ExpandIntSliceWithDelimiter

func ExpandIntSliceWithDelimiter(input []interface{}, delimiter string) *string

func ExpandMapStringPtrString

func ExpandMapStringPtrString(input map[string]interface{}) map[string]*string

func ExpandPtrMapStringString

func ExpandPtrMapStringString(input map[string]interface{}) *map[string]string

func ExpandStringSlice

func ExpandStringSlice(input []interface{}) *[]string

func ExpandStringSliceWithDelimiter

func ExpandStringSliceWithDelimiter(input []interface{}, delimiter string) *string

func FlattenFloatRangeSlice

func FlattenFloatRangeSlice(input *[][]float64) [][]interface{}

func FlattenFloatSlice

func FlattenFloatSlice(input *[]float64) []interface{}

func FlattenInt32Slice

func FlattenInt32Slice(input *[]int32) []interface{}

func FlattenInt64Slice

func FlattenInt64Slice(input *[]int64) []interface{}

func FlattenMapStringPtrString

func FlattenMapStringPtrString(input map[string]*string) map[string]interface{}

func FlattenPtrMapStringString

func FlattenPtrMapStringString(input *map[string]string) map[string]interface{}

func FlattenStringSlice

func FlattenStringSlice(input *[]string) []interface{}

func FlattenStringSliceWithDelimiter

func FlattenStringSliceWithDelimiter(input *string, delimiter string) []interface{}

func Float

func Float(input float64) *float64

Float Deprecated: please use the `To` function in the `pointer` package

func Int32

func Int32(input int32) *int32

Int32 Deprecated: please use the `To` function in the `pointer` package

func Int64

func Int64(input int64) *int64

Int64 Deprecated: please use the `To` function in the `pointer` package

func NormalizeJson

func NormalizeJson(jsonString interface{}) string

func RemoveFromStringArray

func RemoveFromStringArray(elements []string, remove string) []string

RemoveFromStringArray removes all matching values from a string array

func ResponseErrorIsRetryable

func ResponseErrorIsRetryable(err error) bool

func ResponseWasBadRequest

func ResponseWasBadRequest(resp autorest.Response) bool

func ResponseWasConflict

func ResponseWasConflict(resp autorest.Response) bool

func ResponseWasForbidden

func ResponseWasForbidden(resp autorest.Response) bool

func ResponseWasNotFound

func ResponseWasNotFound(resp autorest.Response) bool

func ResponseWasStatusCode

func ResponseWasStatusCode(resp autorest.Response, statusCode int) bool

func SliceContainsValue

func SliceContainsValue(input []string, value string) bool

func String

func String(input string) *string

String Deprecated: please use the`To` function in the `pointer` package

func StringSlice

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

StringSlice Deprecated: please use the `To` function in the `pointer` package

Types

This section is empty.

Jump to

Keyboard shortcuts

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