Versions in this module Expand all Collapse all v1 v1.4.1 Apr 25, 2019 Changes in this version + type AnalysisBase struct + Databases []string + Framework string + FrameworkVersion string + GitBranch string + GitURL string + LanguageVersion string + ListOfStartCommands []string + Messages common.Lister + PackName string + SupportedLanguageVersions []string + type Analyzer interface + FillServices func(*[]*common.Service) error + GuessFramework func() string + HasPackage func(pack string) bool + type AnalyzerBase struct + Environment string + GitBranch string + GitURL string + Messages common.Lister + RootDir string + ShouldPrompt bool + func (a *AnalyzerBase) AskForCommand(defaultCommand string, step string) string + func (a *AnalyzerBase) CheckNotSupportedPackages(packages *common.Lister) + func (a *AnalyzerBase) ConfirmDatabases(foundDbs []common.Database) []common.Database + func (a *AnalyzerBase) ConfirmVersion(found bool, version string, defaultVersion string) string + func (a *AnalyzerBase) FindPort(hasFoundServer bool, server WebServer, command *string) (string, error) + func (a *AnalyzerBase) GetOrCreateWebService(services *[]*common.Service) *common.Service + func (a *AnalyzerBase) ProjectMetadata() (string, string, string, error) + func (b *AnalyzerBase) AnalyzeServices(a Analyzer, envVars []*common.EnvVar, gitBranch string, gitURL string, ...) ([]*common.Service, error) + func (b *AnalyzerBase) DetectWebServer(a Analyzer, command string, servers []WebServer) (hasFound bool, webserver WebServer) + type Detector interface + Detect func(rootDir string) bool + GetPack func() Pack + type DockerComposeYAMLContextBase struct + Dbs []common.Database + Services []*common.Service + type DockerComposeYAMLWriterBase struct + func (w *DockerComposeYAMLWriterBase) Write(context interface{}) error + type DockerfileContextBase struct + Framework string + FrameworkVersion string + Packages *common.Lister + Version string + type DockerfileWriterBase struct + func (w *DockerfileWriterBase) Write(context interface{}) error + type Pack interface + Analyze func(rootDir string, environment string, shouldNotPrompt bool, git_repo string, ...) error + CreateSkycapFiles func(outputDir string, templateDir string, branch string) error + Detector func() Detector + FilesToBeAnalysed func() []string + Framework func() string + FrameworkVersion func() string + GetDatabases func() []string + GetMessages func() []string + GetStartCommands func() []string + GetSupportedLanguageVersions func() []string + LanguageVersion func() string + Name func() string + SetSupportedLanguageVersions func(versions []string) + StencilRepositoryPath func() string + WriteDockerComposeYAML func(templateDir string, outputDir string, shouldNotPrompt bool) error + WriteDockerfile func(templateDir string, outputDir string, shouldNotPrompt bool) error + WriteKubesConfig func(outputDir string, shouldNotPrompt bool) error + WriteServiceYAML func(templateDir string, outputDir string, shouldNotPrompt bool) error + type PackBase struct + Messages *common.Lister + type PackElement struct + Pack Pack + func (e *PackElement) GetPack() Pack + type ServiceYAMLContextBase struct + Dbs []common.Database + Services []*common.Service + type ServiceYAMLWriterBase struct + func (w *ServiceYAMLWriterBase) Write(context interface{}) error + type TemplateWriterBase struct + OutputDir string + ShouldPrompt bool + TemplateDir string + func (w *TemplateWriterBase) WriteTemplate(templateName string, filename string, context interface{}) error + type WebServer interface + DefaultPort func() string + Names func() []string + ParsePort func(command string) (hasFound bool, port string) + Port func(command *string) string + RemovePortIfEnvVar func(command string) string + type WebServerBase struct + func (b *WebServerBase) Port(w WebServer, command *string) string + func (w *WebServerBase) ParsePort(command string) (hasFound bool, port string) + func (w *WebServerBase) RemovePortIfEnvVar(command string) string