Versions in this module Expand all Collapse all v1 v1.4.1 Apr 25, 2019 Changes in this version + var MsgReset string = ansi.ColorCode("reset") + var PrintError = printers(" ", ansi.ColorCode("red")) + var PrintL0 = printers(" ", ansi.ColorCode("magenta")) + var PrintL1 = printers(" ", ansi.ColorCode("white")) + var PrintL2 = printers(" ----> ", ansi.ColorCode("black+h")) + var PrintTitle = printers(" ", ansi.ColorCode("green+h")) + var PrintWarning = printers(" ", ansi.ColorCode("yellow")) + var PrintlnError = printers(" ", ansi.ColorCode("red")) + var PrintlnL0 = printers(" ", ansi.ColorCode("magenta")) + var PrintlnL1 = printers(" ", ansi.ColorCode("white")) + var PrintlnL2 = printers(" ----> ", ansi.ColorCode("black+h")) + var PrintlnTitle = printers(" ", ansi.ColorCode("green+h")) + var PrintlnWarning = printers(" ", ansi.ColorCode("yellow")) + func AddFile(dir string, file string) error + func AskMultipleChoices(message string, choices []string) string + func AskUser(message string) string + func AskUserWithDefault(message string, defaultValue string, shouldPrompt bool) string + func AskYesOrNo(message string, defaultValue bool, shouldPrompt bool) bool + func Commit(dir string, message string) error + func CompareVersions(desired string, actual string) (bool, error) + func ContainsString(slice []string, desired string) bool + func DownloadSingleFile(tempDir string, temp DownloadFile, flagBranch string) error + func DownloadTemplates(tempDir string, td TemplateDefinition, templatePath string, flagBranch string) error + func Fetch(url string, mod *time.Time) (io.ReadCloser, error) + func FetchJSON(url string, mod *time.Time, v interface{}) error + func FileExists(filename string) bool + func GetAllowedNodeVersions() []string + func GetClosedAllowedNodeVersion(major uint64, minor uint64, patch uint64) string + func GetDefaultNodeVersion() string + func GetDependencyVersion(packageJsonFile string, dependencyNames ...string) (bool, string) + func GetFramework(composerJSONfile string, framework string) (bool, string) + func GetGemVersion(gemFile string, gemNames ...string) (bool, string) + func GetMeteorVersion(meteorReleaseFile string) (bool, string) + func GetNodeDatabase(packageJsonFile string, databaseNames ...string) (bool, string) + func GetNodeVersion(packageJsonFile string) (bool, []string) + func GetPHPDatabase(composerJSONfile string, databaseName string) (bool, string) + func GetPHPVersion(composerJSONfile string) (bool, string) + func GetPythonVersion() (hasFound bool, version string) + func GetRubyVersion(gemFile string) (bool, string) + func GetScriptsStart(packageJsonFile string) (bool, string) + func GetSupportedNodeFrameworks() []string + func GitRootDir(dir string) (string, error) + func HasGit(dir string) bool + func IsDjangoProject(rootDir string) bool + func LocalGitBranch(dir string) string + func PadVersionNumber(version string) string + func ParseEnvironmentVariables(line string) (string, error) + func ParseLineForGem(gemName string, line string) (bool, string) + func ParsePort(command string) (hasFound bool, port string) + func ParseUniqueInt(line string) (string, error) + func PathRelativeToGitRoot(dirPath string) (string, error) + func PythonPackages(requirementsTxt string) ([]string, error) + func RemoteGitUrl(dir string) string + func RemovePortIfEnvVar(command string) string + func SetAllowedNodeVersions(versions []string) + func Tar(source, target string) error + type Database struct + DockerImage string + Name string + type DownloadFile struct + Name string + URL string + type EnvVar struct + Key string + Value string + func NewEnvMapping(key string, value string) *EnvVar + type Lister struct + Items []string + func NewLister(seed ...string) *Lister + func (l *Lister) Add(items ...string) + func (l *Lister) Contains(item string) bool + func (l *Lister) ToList(sep string) string + type PortMapping struct + Container string + HTTP string + HTTPS string + TCP string + UDP string + func NewInternalPortMapping(container string) *PortMapping + func NewPortMapping() *PortMapping + type Process struct + Command string + Name string + func ParseProcfile(procfile string) ([]*Process, error) + type Service struct + BuildCommand string + BuildRoot string + Command string + Databases []Database + DeployCommand string + EnvVars []*EnvVar + GitBranch string + GitRepo string + Name string + Ports []*PortMapping + type TemplateDefinition struct + BundleManifest []DownloadFile + DockerComposeYmls []DownloadFile + Dockerfiles []DownloadFile + ServiceYmls []DownloadFile + Version string