Versions in this module Expand all Collapse all v0 v0.14.0 Jul 7, 2020 Changes in this version + func CopyFile(sourceFilePath, targetFilePath string) error + func ExtractTarToFileSystem(tarReader *tar.Reader, destination string) error + func Zip(zipFileName, targetDirectory string) error + type Authentication struct + Username string + type GitCredentials struct + Password string + PersonalAccessToken string + Username string + func ExtractGitCredentials(username, password, personalAccessToken string) (*GitCredentials, error) type TemplateRepo + Authentication *Authentication v0.11.0 Apr 9, 2020 Changes in this version + func CreateTempFile(filePath string) bool + func CreateTimestamp() int64 + func DeleteTempFile(filePath string) (bool, error) + func DirIsEmpty(path string) (bool, error) + func DownloadAndExtractZip(zipURL string, destination string) error + func DownloadFile(URL, destination string) error + func DownloadFromRepoURL(repoURL string, destination string) error + func DownloadFromTarGzURL(URL string, destination string) error + func DownloadFromURLThenExtract(URL string, destination string) error + func GetZipURL(owner, repo, branch string) (string, error) + func IsTarGzURL(URL string) bool + func OnAddTemplateRepo(extensions []Extension, url string, repos []TemplateRepo) + func OnDeleteTemplateRepo(extensions []Extension, url string, repos []TemplateRepo) + func PathExists(path string) bool + func PrettyPrintJSON(i interface{}) + func RemoveDuplicateEntries(inputArr []string) []string + func ReplaceInFiles(projectPath string, oldStr string, newStr string) error + func RunCommand(projectPath string, command ExtensionCommand, params map[string]string) error + func UnTar(pathToTarFile, destination string) error + func UnZip(filePath, destination string) error + func WaitForService(url string, successStatusCode int, maxRetries int) error + type Extension struct + Commands []ExtensionCommand + Config ExtensionConfig + Detection string + ProjectType string + type ExtensionCommand struct + Args []string + Command string + Name string + type ExtensionConfig struct + Style string + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type TemplateRepo struct + Description string + Enabled bool + ID string + Name string + ProjectStyles []string + Protected bool + URL string