Documentation ¶
Index ¶
- func Base64EncodeIfNot(data string) string
- func Bool(input bool) *bool
- func ExpandFloatRangeSlice(input []interface{}) *[][]float64
- func ExpandFloatSlice(input []interface{}) *[]float64
- func ExpandInt32Slice(input []interface{}) *[]int32
- func ExpandInt64Slice(input []interface{}) *[]int64
- func ExpandIntSliceWithDelimiter(input []interface{}, delimiter string) *string
- func ExpandMapStringPtrString(input map[string]interface{}) map[string]*string
- func ExpandPtrMapStringString(input map[string]interface{}) *map[string]string
- func ExpandStringSlice(input []interface{}) *[]string
- func ExpandStringSliceWithDelimiter(input []interface{}, delimiter string) *string
- func FlattenFloatRangeSlice(input *[][]float64) [][]interface{}
- func FlattenFloatSlice(input *[]float64) []interface{}
- func FlattenInt32Slice(input *[]int32) []interface{}
- func FlattenInt64Slice(input *[]int64) []interface{}
- func FlattenMapStringPtrString(input map[string]*string) map[string]interface{}
- func FlattenPtrMapStringString(input *map[string]string) map[string]interface{}
- func FlattenStringSlice(input *[]string) []interface{}
- func FlattenStringSliceWithDelimiter(input *string, delimiter string) []interface{}
- func Float(input float64) *float64
- func Int32(input int32) *int32
- func Int64(input int64) *int64
- func NormaliseNilableBool(input *bool) bool
- func NormaliseNilableInt(input *int) int
- func NormaliseNilableInt32(input *int32) int32
- func NormaliseNilableInt64(input *int64) int64
- func NormalizeJson(jsonString interface{}) string
- func NormalizeNilableFloat(input *float64) float64
- func NormalizeNilableFloat32(input *float32) float32
- func NormalizeNilableString(input *string) string
- func RemoveFromStringArray(elements []string, remove string) []string
- func ResponseErrorIsRetryable(err error) bool
- func ResponseWasBadRequest(resp autorest.Response) bool
- func ResponseWasConflict(resp autorest.Response) bool
- func ResponseWasForbidden(resp autorest.Response) bool
- func ResponseWasNotFound(resp autorest.Response) bool
- func ResponseWasStatusCode(resp autorest.Response, statusCode int) bool
- func SliceContainsValue(input []string, value string) bool
- func String(input string) *string
- func StringSlice(input []string) *[]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64EncodeIfNot ¶
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 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 ExpandStringSlice ¶
func ExpandStringSlice(input []interface{}) *[]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 FlattenStringSlice ¶
func FlattenStringSlice(input *[]string) []interface{}
func NormaliseNilableBool ¶
NormaliseNilableBool takes a pointer to a bool and returns a zero value or the real value if present
func NormaliseNilableInt ¶
NormaliseNilableInt takes a pointer to an int and returns a zero value or the real value if present
func NormaliseNilableInt32 ¶
NormaliseNilableInt32 takes a pointer to an int32 and returns a zero value or the real value if present
func NormaliseNilableInt64 ¶
NormaliseNilableInt64 takes a pointer to an int64 and returns a zero value or the real value if present
func NormalizeJson ¶
func NormalizeJson(jsonString interface{}) string
func NormalizeNilableFloat ¶
NormalizeNilableFloat normalizes a nilable float64 into a float64 value
func NormalizeNilableFloat32 ¶
NormalizeNilableFloat32 normalizes a nilable float32 into a float32 value
func NormalizeNilableString ¶
NormalizeNilableString normalizes a nilable string into a string that is, if it's nil returns an empty string else the value
func RemoveFromStringArray ¶
RemoveFromStringArray removes all matching values from a string array
func ResponseWasBadRequest ¶
func ResponseWasConflict ¶
func ResponseWasForbidden ¶
func ResponseWasNotFound ¶
func ResponseWasStatusCode ¶
func SliceContainsValue ¶
func StringSlice ¶
Types ¶
This section is empty.