utils

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MPL-2.0 Imports: 6 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeIfNot added in v1.34.0

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

func ExpandStringSlice added in v1.29.0

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

func FlattenStringSlice added in v1.29.0

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

func Float added in v1.10.0

func Float(input float64) *float64

func Int added in v1.25.0

func Int(input int) *int

func Int32

func Int32(input int32) *int32

func Int64

func Int64(input int64) *int64

func IoCloseAndLogError added in v1.18.0

func IoCloseAndLogError(c io.Closer, message string)

func ResponseErrorIsRetryable added in v1.16.0

func ResponseErrorIsRetryable(err error) bool

func ResponseWasNotFound

func ResponseWasNotFound(resp autorest.Response) bool

func ResponseWasStatusCode added in v1.31.0

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

func String

func String(input string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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