Documentation ¶
Index ¶
- Constants
- func CreateSSH(rg io.Reader, s *i18n.Translator) (privateKey *rsa.PrivateKey, publicKeyString string, err error)
- 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
Constants ¶
View Source
const (
// SSHKeySize is the size (in bytes) of SSH key to create
SSHKeySize = 4096
)
Variables ¶
This section is empty.
Functions ¶
func CreateSSH ¶
func CreateSSH(rg io.Reader, s *i18n.Translator) (privateKey *rsa.PrivateKey, publicKeyString string, err error)
CreateSSH creates an SSH key pair.
func IsTrueBoolPointer ¶
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 ¶
NormalizeAzureRegion returns a normalized Azure region with white spaces removed and converted to lower case
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.