Documentation ¶
Index ¶
- Constants
- func GetAzureLocations() []string
- func GetCloudTargetEnv(location string) string
- func GetHomeDir() string
- func GetTargetEnv(location, customCloudName string) string
- func JSONMarshal(content interface{}, escape bool) ([]byte, error)
- func JSONMarshalIndent(content interface{}, prefix, indent string, escape bool) ([]byte, error)
- type FileSaver
Constants ¶
const ( // SSHKeySize is the size (in bytes) of SSH key to create SSHKeySize = 4096 // DefaultPkiKeySize is the default size in bytes of the PKI key DefaultPkiKeySize = 4096 )
Variables ¶
This section is empty.
Functions ¶
func GetAzureLocations ¶
func GetAzureLocations() []string
GetAzureLocations provides all azure regions in prod. Related powershell to refresh this list:
Get-AzureRmLocation | Select-Object -Property Location
func GetCloudTargetEnv ¶
GetCloudTargetEnv determines and returns whether the region is a sovereign cloud which have their own data compliance regulations (China/Germany/USGov) or standard Azure public cloud
func GetTargetEnv ¶
GetTargetEnv determines and returns whether the region is a sovereign cloud which have their own data compliance regulations (China/Germany/USGov) or standard Azure public cloud CustomCloudName is name of environment if customCloudProfile is provided, it will be empty string if customCloudProfile is empty. Because customCloudProfile is empty for deployment for AzurePublicCloud, AzureChinaCloud,AzureGermanCloud,AzureUSGovernmentCloud, The customCloudName value will be empty string for those clouds
func JSONMarshal ¶
JSONMarshal marshals JSON w/ optional SetEscapeHTML