Documentation ¶
Index ¶
- Constants
- func AcceleratedNetworkingSupported(sku string) bool
- func CreateSSH(rg io.Reader, s *i18n.Translator) (privateKey *rsa.PrivateKey, publicKeyString string, err error)
- func EqualError(a, b error) bool
- func GetHomeDir() string
- func IsFalseBoolPointer(b *bool) bool
- func IsTrueBoolPointer(b *bool) bool
- func JSONMarshal(content interface{}, escape bool) ([]byte, error)
- func JSONMarshalIndent(content interface{}, prefix, indent string, escape bool) ([]byte, error)
- func NormalizeAzureRegion(name string) string
- func PointerToBool(b bool) *bool
- func PointerToInt(i int) *int
- func PointerToString(s string) *string
Constants ¶
const (
// SSHKeySize is the size (in bytes) of SSH key to create
SSHKeySize = 4096
)
Variables ¶
This section is empty.
Functions ¶
func AcceleratedNetworkingSupported ¶ added in v0.20.0
AcceleratedNetworkingSupported check if the VmSKU support the Accelerated Networking
func CreateSSH ¶ added in v0.16.0
func CreateSSH(rg io.Reader, s *i18n.Translator) (privateKey *rsa.PrivateKey, publicKeyString string, err error)
CreateSSH creates an SSH key pair.
func EqualError ¶ added in v0.20.0
EqualError is a nil-safe method which reports whether errors a and b are considered equal. They're equal if both are nil, or both are not nil and a.Error() == b.Error().
func GetHomeDir ¶ added in v0.21.0
func GetHomeDir() string
GetHomeDir attempts to get the home dir from env
func IsFalseBoolPointer ¶ added in v0.22.0
IsFalseBoolPointer is a simple boolean helper function for boolean pointers
func IsTrueBoolPointer ¶ added in v0.12.0
IsTrueBoolPointer is a simple boolean helper function for boolean pointers
func JSONMarshal ¶
JSONMarshal marshals JSON w/ optional SetEscapeHTML
func JSONMarshalIndent ¶
JSONMarshalIndent marshals formatted JSON w/ optional SetEscapeHTML
func NormalizeAzureRegion ¶ added in v0.17.0
NormalizeAzureRegion returns a normalized Azure region with white spaces removed and converted to lower case
func PointerToBool ¶ added in v0.14.5
PointerToBool returns a pointer to a bool
func PointerToInt ¶ added in v0.20.4
PointerToInt returns a pointer to a int
func PointerToString ¶ added in v0.22.1
PointerToString returns a pointer to a string
Types ¶
This section is empty.