Documentation ¶
Index ¶
- Variables
- func BallerinaInstallationDir() string
- func CelleryInstallationDir() string
- func CleanAndCreateDir(dirPath string) error
- func CleanOrCreateDir(dirPath string) error
- func ContainsInStringArray(array []string, item string) bool
- func ConvertStringToTime(timeString string) time.Time
- func ConvertToAlphanumeric(input, replacement string) string
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func CopyK8sArtifacts(outPath string)
- func CreateDir(dirPath string) error
- func CreateTempExecutableBalFile(file string, action string) (string, error)
- func DownloadFromS3Bucket(bucket, item, path string, displayProgressBar bool)
- func ExecuteCommand(cmd *exec.Cmd) error
- func ExitWithErrorMessage(message string, err error)
- func ExtractTarGzFile(extractTo, archive_name string) error
- func FileExists(path string) (bool, error)
- func FindInDirectory(directory, suffix string) []string
- func FormatBytesToString(size int64) string
- func GetCurrentPath() (string, error)
- func GetDuration(startTime time.Time) string
- func GetFileSize(path string) (int64, error)
- func GetS3ObjectEtag(bucket, item string) string
- func GetS3ObjectSize(bucket, item string) int64
- func GetSourceFileName(filePath string) (string, error)
- func GetSubDirectoryNames(path string) ([]string, error)
- func GetYesOrNoFromUser(question string, withBackOption bool) (bool, bool, error)
- func IsCommandAvailable(name string) bool
- func IsCompleteSetupSelected() (bool, bool)
- func IsLoadBalancerIngressTypeSelected() (bool, bool)
- func MergeKubeConfig(newConfigFile string) error
- func OpenBrowser(url string) error
- func PrintSuccessMessage(message string)
- func PrintWarningMessage(message string)
- func PrintWhatsNextMessage(action string, cmd string)
- func RecursiveZip(files []string, folders []string, destinationPath string) error
- func RemoveDir(dirPath string) error
- func RenameFile(oldName, newName string) error
- func ReplaceInFile(srcFile, oldString, newString string, replaceCount int) error
- func ReplaceInstanceName(srcFile, oldString, newString string) error
- func RequestCredentials(credentialType string, usernameOverride string) (string, string, error)
- func TestMethodExists(sourceFile string) (bool, error)
- func Unzip(zipFolderName string, destinationFolderName string) error
- func UserHomeCelleryDir() string
- func UserHomeDir() string
- type BLangManager
- type Gcp
- type GcpCompute
- type GcpCore
- type LangManager
- type RegistryCredentials
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var Bold = color.New(color.Bold).SprintFunc()
View Source
var Faint = color.New(color.Faint).SprintFunc()
View Source
var Green = color.New(color.FgGreen).SprintfFunc()
Functions ¶
func BallerinaInstallationDir ¶ added in v0.2.1
func BallerinaInstallationDir() string
func CelleryInstallationDir ¶ added in v0.2.0
func CelleryInstallationDir() string
func CleanAndCreateDir ¶ added in v0.4.0
func CleanOrCreateDir ¶
func ContainsInStringArray ¶ added in v0.2.0
func ConvertStringToTime ¶
func ConvertToAlphanumeric ¶ added in v0.4.0
func CopyK8sArtifacts ¶ added in v0.4.0
func CopyK8sArtifacts(outPath string)
func CreateTempExecutableBalFile ¶ added in v0.3.0
func DownloadFromS3Bucket ¶
func ExecuteCommand ¶
func ExitWithErrorMessage ¶
ExitWithErrorMessage prints an error message and exits the command
func ExtractTarGzFile ¶
func FileExists ¶
func FindInDirectory ¶
func FormatBytesToString ¶ added in v0.2.0
func GetCurrentPath ¶ added in v0.2.0
func GetDuration ¶
func GetFileSize ¶
func GetS3ObjectEtag ¶ added in v0.4.0
func GetS3ObjectSize ¶ added in v0.2.0
func GetSourceFileName ¶
func GetSubDirectoryNames ¶
func GetYesOrNoFromUser ¶ added in v0.2.0
func IsCommandAvailable ¶ added in v0.2.1
func IsCompleteSetupSelected ¶ added in v0.2.0
func IsLoadBalancerIngressTypeSelected ¶ added in v0.2.0
func MergeKubeConfig ¶ added in v0.2.0
func OpenBrowser ¶ added in v0.2.0
OpenBrowser opens up the provided URL in a browser
func PrintSuccessMessage ¶
func PrintSuccessMessage(message string)
PrintSuccessMessage prints the standard command success message
func PrintWarningMessage ¶ added in v0.3.0
func PrintWarningMessage(message string)
func PrintWhatsNextMessage ¶
func RecursiveZip ¶
func RenameFile ¶
func ReplaceInFile ¶
func ReplaceInstanceName ¶
func RequestCredentials ¶
RequestCredentials requests the credentials form the user and returns them
func TestMethodExists ¶ added in v0.3.0
TestMethodExists checks if the test method exists in ballerina file
func UserHomeCelleryDir ¶ added in v0.4.0
func UserHomeCelleryDir() string
func UserHomeDir ¶
func UserHomeDir() string
Types ¶
type BLangManager ¶ added in v0.2.0
type BLangManager struct{}
func (*BLangManager) GetExecutablePath ¶ added in v0.2.0
func (langMgr *BLangManager) GetExecutablePath() (string, error)
func (*BLangManager) Init ¶ added in v0.2.0
func (langMgr *BLangManager) Init() error
type Gcp ¶
type Gcp struct { Compute GcpCompute `json:"compute"` Core GcpCore `json:"core"` }
type GcpCompute ¶
type LangManager ¶ added in v0.2.0
type RegistryCredentials ¶ added in v0.2.0
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func StartNewSpinner ¶
StartNewSpinner starts a new spinner with the provided message
func (*Spinner) Pause ¶ added in v0.2.0
func (s *Spinner) Pause()
Pause the spinner and clear the line
func (*Spinner) SetNewAction ¶
SetNewAction sets the current action of a spinner
Click to show internal directories.
Click to hide internal directories.