Documentation ¶
Index ¶
- func CheckAPIKeyFlag(apiKey string, userProfile string) (string, error)
- func CheckArgsCount(args []string)
- func CheckCloudAddFlags(externalID, roleArn, roleName, environment string) error
- func CheckCloudAddFlagsForAWS(externalID, roleArn, roleName, environment string) error
- func CheckCloudAddFlagsForAzure(keyValue, applicationID, directoryID, subscriptionID, environment string) error
- func CheckCloudShowOrDeleteFlag(cloudID string, verbose bool) error
- func CheckProviderFlag(provider string) error
- func CheckTeamAddFlags(teamName, teamDescription string) error
- func CheckTeamIDFlag(teamID, userProfile string, verbose bool) (string, error)
- func CheckTokenShowOrDeleteFlag(tokenID string, verbose bool) error
- func CreateFile(name, path, content string, override bool) error
- func CreateFolder(name, path string) error
- func GetValueFromConfig(key string, masked bool) (value string)
- func PrettyJSON(obj interface{}) string
- func PrettyPrintJSON(obj interface{})
- func PrintError(err error, json bool)
- func PrintResult(out io.Writer, t interface{}, headers []string, headersMap map[string]string, ...)
- func SaveViperConfig() error
- func UpdateConfig(key, value string)
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAPIKeyFlag ¶
CheckAPIKeyFlag flag check for api key
func CheckCloudAddFlags ¶
CheckCloudAddFlags flag check for cloud add command
func CheckCloudAddFlagsForAWS ¶ added in v0.0.31
CheckCloudAddFlags flag check for cloud add command when adding AWS cloud account
func CheckCloudAddFlagsForAzure ¶ added in v0.0.31
func CheckCloudAddFlagsForAzure(keyValue, applicationID, directoryID, subscriptionID, environment string) error
CheckCloudAddFlags flag check for cloud add command when adding azure cloud account
func CheckCloudShowOrDeleteFlag ¶
CheckCloudShowOrDeleteFlag flags check for cloud show or delete command
func CheckProviderFlag ¶ added in v0.0.31
func CheckTeamAddFlags ¶ added in v0.0.7
CheckTeamAddFlags Required flags check
func CheckTeamIDFlag ¶
CheckTeamIDFlag flag check for team id
func CheckTokenShowOrDeleteFlag ¶
CheckTokenShowOrDeleteFlag flag check for token show or delete command
func CreateFile ¶
CreateFile create a file
func GetValueFromConfig ¶
GetValueFromConfig to get values from config
func PrettyJSON ¶ added in v0.0.3
func PrettyJSON(obj interface{}) string
PrettyJSON return pretty json
Types ¶
type Table ¶
type Table struct { HeaderMap map[string]string Header []string Rows [][]interface{} MaxCellSize int }
Table struct
func (*Table) SetHeaderMap ¶ added in v0.0.2
SetHeaderMap set headerMap for table
func (*Table) SetMaxCellSize ¶
SetMaxCellSize set max cell size