Documentation ¶
Index ¶
- func CheckAPIKeyFlag(apiKey string, userProfile string) (string, error)
- func CheckArgsCount(args []string)
- func CheckCloudAddFlags(resourceName, resourceKey, resourceSecret string) error
- func CheckCloudShowOrDeleteFlag(cloudID string, verbose bool) error
- func CheckCompositeCreateFlags(name, gitRepoURL string) error
- func CheckCompositeIDAndPlandIDFlag(compositeID, planID string, verbose bool) error
- func CheckCompositeShowOrDeleteFlag(compositeID string, verbose bool) error
- func CheckExtendFlags(gitRepoURL string) error
- func CheckGitInstall() error
- func CheckGitKeyAddFlags(name, secret string) error
- func CheckGitKeyShowOrDeleteFlag(gitKeyID string, verbose bool) error
- func CheckLayersFlags(name, gitRepoURL string) error
- func CheckPlanCreateJSONFileFlag(file string) error
- func CheckPlanInitRequiredFlags(compositeID, cloudID, name string) error
- func CheckSecretKeyFlag(secretKey string, userProfile string) (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 CreateGitSubmodule(directory, gitRepoURL string) error
- func GetRepoNameFromGitURL(gitURL string) string
- 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 CheckCloudShowOrDeleteFlag ¶
CheckCloudShowOrDeleteFlag flags check for cloud show or delete command
func CheckCompositeCreateFlags ¶
CheckCompositeCreateFlags flags check for composite create command
func CheckCompositeIDAndPlandIDFlag ¶
CheckCompositeIDAndPlandIDFlag Check for compositeID and planID
func CheckCompositeShowOrDeleteFlag ¶
CheckCompositeShowOrDeleteFlag flag check for composite show or delete command
func CheckExtendFlags ¶
CheckExtendFlags flag check for composite extend command
func CheckGitKeyAddFlags ¶
CheckGitKeyAddFlags flag check for git key add command
func CheckGitKeyShowOrDeleteFlag ¶
CheckGitKeyShowOrDeleteFlag flag check for Git key show or delete command
func CheckLayersFlags ¶
CheckLayersFlags flag check for composite layer command
func CheckPlanCreateJSONFileFlag ¶ added in v0.0.3
CheckPlanCreateJSONFileFlag Check for JSON file
func CheckPlanInitRequiredFlags ¶ added in v0.0.3
CheckPlanInitRequiredFlags Required flags check
func CheckSecretKeyFlag ¶
CheckSecretKeyFlag flag check for secret key
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 CreateGitSubmodule ¶
CreateGitSubmodule create composite git submodule
func GetRepoNameFromGitURL ¶ added in v0.0.7
GetRepoNameFromGitURL get repo name from gitURL
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