Documentation ¶
Index ¶
- Constants
- func CheckFileExists(filename string) (bool, error)
- func CleanupAfterFetchingHttpsSubmodules() error
- func CreateGitCredentialFileAndWriteData(data string) error
- func CreateSshPrivateKeyOnDisk(fileId int, sshPrivateKeyContent string) error
- func Generate(size int) string
- func GetProjectName(url string) string
- func LogStage(name string)
- func ParseUrl(rawURL string) (parsedURL *url.URL, err error)
Constants ¶
View Source
const ( SSH_PRIVATE_KEY_DIR = ".ssh" SSH_PRIVATE_KEY_FILE_NAME = "id_rsa" GIT_CREDENTIAL_FILE_NAME = ".git-credentials" )
View Source
const DEVTRON = "DEVTRON"
Variables ¶
This section is empty.
Functions ¶
func CheckFileExists ¶
CheckFileExists returns boolean value of file existence else error (ignoring file does not exist error)
func CleanupAfterFetchingHttpsSubmodules ¶
func CleanupAfterFetchingHttpsSubmodules() error
func GetProjectName ¶
GetProjectName this function has been designed for returning project name of git-lab and git-hub providers only do not remove this function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.