Documentation ¶
Index ¶
- Constants
- func GetConfFileForService(confFiles []string, serviceName string) string
- type CargoTomlConfig
- type DotNetCoreDockerfileGenerator
- func (t *DotNetCoreDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *DotNetCoreDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *DotNetCoreDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *DotNetCoreDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type DotNetCoreDockerfileYamlConfig
- type DotNetCoreTemplateConfig
- type GlobalParameters
- type GolangDockerfileGenerator
- func (t *GolangDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *GolangDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *GolangDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *GolangDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type GolangDockerfileYamlConfig
- type GolangTemplateConfig
- type LaunchProfile
- type LaunchSettings
- type NodejsDockerfileGenerator
- func (t *NodejsDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *NodejsDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *NodejsDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *NodejsDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type NodejsDockerfileYamlConfig
- type NodejsTemplateConfig
- type PHPDockerfileGenerator
- func (t *PHPDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *PHPDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *PHPDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *PHPDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type PackageInfo
- type PackageJSON
- type PhpTemplateConfig
- type PropertyGroup
- type PublishProfile
- type PythonConfig
- type PythonDockerfileGenerator
- func (t *PythonDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *PythonDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *PythonDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *PythonDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type PythonTemplateConfig
- type RocketTomlConfig
- type RubyDockerfileGenerator
- func (t *RubyDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *RubyDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *RubyDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *RubyDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type RubyTemplateConfig
- type RustDockerfileGenerator
- func (t *RustDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *RustDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *RustDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *RustDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type RustTemplateConfig
Constants ¶
const ( // CSPROJ_FILE_EXT is the file extension for C# (C Sharp) projects. CSPROJ_FILE_EXT = ".csproj" // DotNetCoreCsprojFilesPathType points to the csproj files path of dotnetcore projects DotNetCoreCsprojFilesPathType transformertypes.PathType = "DotNetCoreCsprojPathType" // DotNetCoreSolutionFilePathType points to the solution file path of dotnetcore project DotNetCoreSolutionFilePathType transformertypes.PathType = "DotNetCoreSolutionPathType" )
const ( //RequirementsTxtPathType points to the requirements.txt file if it's present RequirementsTxtPathType transformertypes.PathType = "RequirementsTxtPathType" // PythonServiceConfigType points to python config PythonServiceConfigType transformertypes.ConfigType = "PythonConfig" // MainPythonFilesPathType points to the .py files path which contain main function MainPythonFilesPathType transformertypes.PathType = "MainPythonFilesPathType" // PythonFilesPathType points to the .py files path PythonFilesPathType transformertypes.PathType = "PythonFilesPathType" )
const ( // GolangModFilePathType points to the go.mod file path GolangModFilePathType transformertypes.PathType = "GoModFilePath" )
Variables ¶
This section is empty.
Functions ¶
func GetConfFileForService ¶
GetConfFileForService returns ports used by a service
Types ¶
type CargoTomlConfig ¶
type CargoTomlConfig struct {
Package PackageInfo
}
CargoTomlConfig implements Cargo.toml config interface
type DotNetCoreDockerfileGenerator ¶
type DotNetCoreDockerfileGenerator struct { Config transformertypes.Transformer Env *environment.Environment DotNetCoreConfig *DotNetCoreDockerfileYamlConfig }
DotNetCoreDockerfileGenerator implements the Transformer interface
func (*DotNetCoreDockerfileGenerator) DirectoryDetect ¶
func (t *DotNetCoreDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*DotNetCoreDockerfileGenerator) GetConfig ¶
func (t *DotNetCoreDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*DotNetCoreDockerfileGenerator) Init ¶
func (t *DotNetCoreDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*DotNetCoreDockerfileGenerator) Transform ¶
func (t *DotNetCoreDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, oldArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type DotNetCoreDockerfileYamlConfig ¶
type DotNetCoreDockerfileYamlConfig struct {
DefaultDotNetCoreVersion string `yaml:"defaultDotNetCoreVersion"`
}
DotNetCoreDockerfileYamlConfig represents the configuration of the DotNetCore dockerfile
type DotNetCoreTemplateConfig ¶
type DotNetCoreTemplateConfig struct { Ports []int32 HTTPPort int32 HTTPSPort int32 CsprojFileName string CsprojFilePath string IsNodeJSProject bool DotNetVersion string PublishProfileFilePath string PublishUrl string }
DotNetCoreTemplateConfig implements DotNetCore config interface
type GlobalParameters ¶
GlobalParameters implements global properties in Rocket.toml
type GolangDockerfileGenerator ¶
type GolangDockerfileGenerator struct { Config transformertypes.Transformer Env *environment.Environment GolangConfig *GolangDockerfileYamlConfig }
GolangDockerfileGenerator implements the Transformer interface
func (*GolangDockerfileGenerator) DirectoryDetect ¶
func (t *GolangDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*GolangDockerfileGenerator) GetConfig ¶
func (t *GolangDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*GolangDockerfileGenerator) Init ¶
func (t *GolangDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*GolangDockerfileGenerator) Transform ¶
func (t *GolangDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type GolangDockerfileYamlConfig ¶
type GolangDockerfileYamlConfig struct {
DefaultGoVersion string `yaml:"defaultGoVersion"`
}
GolangDockerfileYamlConfig represents the configuration of the Golang dockerfile
type GolangTemplateConfig ¶
GolangTemplateConfig implements Golang config interface
type LaunchProfile ¶
type LaunchProfile struct { CommandName string `json:"CommandName"` LaunchBrowser bool `json:"launchBrowser"` ApplicationURL string `json:"applicationUrl"` EnvironmentVariables map[string]string `json:"environmentVariables"` }
LaunchProfile implements launch profile properties
type LaunchSettings ¶
type LaunchSettings struct {
Profiles map[string]LaunchProfile `json:"profiles"`
}
LaunchSettings defines launchSettings.json properties
type NodejsDockerfileGenerator ¶
type NodejsDockerfileGenerator struct { Config transformertypes.Transformer Env *environment.Environment NodejsConfig *NodejsDockerfileYamlConfig }
NodejsDockerfileGenerator implements the Transformer interface
func (*NodejsDockerfileGenerator) DirectoryDetect ¶
func (t *NodejsDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*NodejsDockerfileGenerator) GetConfig ¶
func (t *NodejsDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*NodejsDockerfileGenerator) Init ¶
func (t *NodejsDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*NodejsDockerfileGenerator) Transform ¶
func (t *NodejsDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type NodejsDockerfileYamlConfig ¶
type NodejsDockerfileYamlConfig struct {
DefaultNodejsVersion string `yaml:"defaultNodejsVersion"`
}
NodejsDockerfileYamlConfig represents the configuration of the Nodejs dockerfile
type NodejsTemplateConfig ¶
NodejsTemplateConfig implements Nodejs config interface
type PHPDockerfileGenerator ¶
type PHPDockerfileGenerator struct { Config transformertypes.Transformer Env *environment.Environment }
PHPDockerfileGenerator implements the Transformer interface
func (*PHPDockerfileGenerator) DirectoryDetect ¶
func (t *PHPDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*PHPDockerfileGenerator) GetConfig ¶
func (t *PHPDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*PHPDockerfileGenerator) Init ¶
func (t *PHPDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*PHPDockerfileGenerator) Transform ¶
func (t *PHPDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type PackageInfo ¶
PackageInfo implements package properties
type PackageJSON ¶
type PackageJSON struct { Name string `json:"name"` Version string `json:"version"` Description string `json:"description"` Keywords []string `json:"keywords"` Homepage string `json:"homepage"` License string `json:"license"` Files []string `json:"files"` Main string `json:"main"` Scripts map[string]string `json:"scripts"` Os []string `json:"os"` CPU []string `json:"cpu"` Private bool `json:"private"` Engines map[string]string `json:"engines"` Dependencies map[string]string `json:"dependencies"` }
PackageJSON represents NodeJS package.json
type PhpTemplateConfig ¶
PhpTemplateConfig implements Php config interface
type PropertyGroup ¶
type PropertyGroup struct { XMLName xml.Name `xml:"PropertyGroup"` PublishUrl string `xml:"PublishUrl"` PublishUrlS string `xml:"publishUrl"` }
PropertyGroup has publish properties of the project
type PublishProfile ¶
type PublishProfile struct { XMLName xml.Name `xml:"Project"` PropertyGroup *PropertyGroup `xml:"PropertyGroup"` }
PublishProfile defines the publish profile
type PythonConfig ¶
type PythonConfig struct {
IsDjango bool `json:"IsDjango" yaml:"IsDjango"`
}
PythonConfig implements python config interface
type PythonDockerfileGenerator ¶
type PythonDockerfileGenerator struct { Config transformertypes.Transformer Env *environment.Environment }
PythonDockerfileGenerator implements the Transformer interface
func (*PythonDockerfileGenerator) DirectoryDetect ¶
func (t *PythonDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*PythonDockerfileGenerator) GetConfig ¶
func (t *PythonDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*PythonDockerfileGenerator) Init ¶
func (t *PythonDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*PythonDockerfileGenerator) Transform ¶
func (t *PythonDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type PythonTemplateConfig ¶
type PythonTemplateConfig struct { AppName string Port int32 StartingScriptRelPath string RequirementsTxt string IsDjango bool }
PythonTemplateConfig implements python config interface
type RocketTomlConfig ¶
type RocketTomlConfig struct {
Global GlobalParameters
}
RocketTomlConfig implements Rocket.toml config interface
type RubyDockerfileGenerator ¶
type RubyDockerfileGenerator struct { Config transformertypes.Transformer Env *environment.Environment }
RubyDockerfileGenerator implements the Transformer interface
func (*RubyDockerfileGenerator) DirectoryDetect ¶
func (t *RubyDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*RubyDockerfileGenerator) GetConfig ¶
func (t *RubyDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*RubyDockerfileGenerator) Init ¶
func (t *RubyDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*RubyDockerfileGenerator) Transform ¶
func (t *RubyDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type RubyTemplateConfig ¶
RubyTemplateConfig implements Ruby config interface
type RustDockerfileGenerator ¶
type RustDockerfileGenerator struct { Config transformertypes.Transformer Env *environment.Environment }
RustDockerfileGenerator implements the Transformer interface
func (*RustDockerfileGenerator) DirectoryDetect ¶
func (t *RustDockerfileGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*RustDockerfileGenerator) GetConfig ¶
func (t *RustDockerfileGenerator) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*RustDockerfileGenerator) Init ¶
func (t *RustDockerfileGenerator) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*RustDockerfileGenerator) Transform ¶
func (t *RustDockerfileGenerator) Transform(newArtifacts []transformertypes.Artifact, oldArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts