Documentation ¶
Index ¶
- type DockerfileDetector
- func (t *DockerfileDetector) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *DockerfileDetector) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *DockerfileDetector) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *DockerfileDetector) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type DockerfileImageBuildConfig
- type DockerfileImageBuildScript
- func (t *DockerfileImageBuildScript) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
- func (t *DockerfileImageBuildScript) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *DockerfileImageBuildScript) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *DockerfileImageBuildScript) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type DockerfileImageBuildScriptConfig
- type DockerfileImageBuildScriptTemplateConfig
- type DockerfileParser
- func (t *DockerfileParser) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *DockerfileParser) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *DockerfileParser) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
- func (t *DockerfileParser) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerfileDetector ¶
type DockerfileDetector struct { Config transformertypes.Transformer Env *environment.Environment }
DockerfileDetector implements the Transformer interface
func (*DockerfileDetector) DirectoryDetect ¶
func (t *DockerfileDetector) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in base directory
func (*DockerfileDetector) GetConfig ¶
func (t *DockerfileDetector) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*DockerfileDetector) Init ¶
func (t *DockerfileDetector) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*DockerfileDetector) Transform ¶
func (t *DockerfileDetector) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type DockerfileImageBuildConfig ¶ added in v0.3.5
type DockerfileImageBuildConfig struct { DockerfileName string ImageName string ContextUnix string ContextWindows string }
DockerfileImageBuildConfig contains the Dockerfile image build config to be used in the ImageBuild script
type DockerfileImageBuildScript ¶
type DockerfileImageBuildScript struct { Config transformertypes.Transformer Env *environment.Environment DockerfileImageBuildScriptConfig *DockerfileImageBuildScriptConfig }
DockerfileImageBuildScript implements Transformer interface
func (*DockerfileImageBuildScript) DirectoryDetect ¶
func (t *DockerfileImageBuildScript) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*DockerfileImageBuildScript) GetConfig ¶
func (t *DockerfileImageBuildScript) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*DockerfileImageBuildScript) Init ¶
func (t *DockerfileImageBuildScript) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*DockerfileImageBuildScript) Transform ¶
func (t *DockerfileImageBuildScript) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts
type DockerfileImageBuildScriptConfig ¶ added in v0.3.5
type DockerfileImageBuildScriptConfig struct {
OutputPath string `yaml:"outputPath"`
}
DockerfileImageBuildScriptConfig stores the transformer specific configuration
type DockerfileImageBuildScriptTemplateConfig ¶
type DockerfileImageBuildScriptTemplateConfig struct { RelParentOfSourceDir string DockerfilesConfig []DockerfileImageBuildConfig RegistryURL string RegistryNamespace string }
DockerfileImageBuildScriptTemplateConfig represents the data used to fill the build script generator template
type DockerfileParser ¶
type DockerfileParser struct { Config transformertypes.Transformer Env *environment.Environment }
DockerfileParser implements Transformer interface
func (*DockerfileParser) DirectoryDetect ¶
func (t *DockerfileParser) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*DockerfileParser) GetConfig ¶
func (t *DockerfileParser) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*DockerfileParser) Init ¶
func (t *DockerfileParser) Init(tc transformertypes.Transformer, env *environment.Environment) (err error)
Init Initializes the transformer
func (*DockerfileParser) Transform ¶
func (t *DockerfileParser) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms the artifacts