Documentation ¶
Index ¶
- Constants
- func AddToMap(ctx *runtime.Context, resultMap map[string]interface{}, ...)
- func Ask(question string) string
- func AskWithDefault(question, defaultValue string) string
- func Choice(question string, defaultOption int, validValues []string) string
- func ChoiceIndex(question string, defaultOption int, validValues []string) int
- func ConfigFilePath() string
- func CurOS() string
- func CurPath() string
- func DefaultEC2Region() (region string)
- func EnterToExit()
- func FileBackup(filePath string, dirPath string) error
- func No(question string) bool
- func PermissionCheck()
- func ReadConfigFromJsonFile() string
- func SDKCredentials() (accessKey, secretKey string, creds *credentials.Credentials)
- func SDKRegion() (region string)
- func SDKRegionWithProfile(profile string) (region string)
- func SaveResultByteArrayToJsonFile(resultByteArray []byte, filePath string) string
- func SerializeResultMapToJsonByteArray(resultMap map[string]interface{}) []byte
- func Yes(question string) bool
Constants ¶
View Source
const ( OsTypeLinux = "linux" OsTypeWindows = "windows" OsTypeDarwin = "darwin" MapKeyMetricsCollectionInterval = "metrics_collection_interval" MapKeyInstances = "resources" MapKeyMeasurement = "measurement" StandardLogGroupClass = "STANDARD" InfrequentAccessLogGroupClass = "INFREQUENT_ACCESS" )
Variables ¶
This section is empty.
Functions ¶
func AddToMap ¶
func AddToMap(ctx *runtime.Context, resultMap map[string]interface{}, obj interfaze.ConvertibleToMap)
func AskWithDefault ¶
func ChoiceIndex ¶ added in v1.300028.0
ChoiceIndex returns index of choice chosen
func ConfigFilePath ¶
func ConfigFilePath() string
func DefaultEC2Region ¶
func DefaultEC2Region() (region string)
func EnterToExit ¶
func EnterToExit()
func FileBackup ¶ added in v1.300028.0
func PermissionCheck ¶
func PermissionCheck()
func ReadConfigFromJsonFile ¶
func ReadConfigFromJsonFile() string
func SDKCredentials ¶
func SDKCredentials() (accessKey, secretKey string, creds *credentials.Credentials)
func SDKRegionWithProfile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.