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 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 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 DockerfileImageBuildScript ¶
type DockerfileImageBuildScript struct { Config transformertypes.Transformer Env *environment.Environment }
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 DockerfileImageBuildScriptTemplateConfig ¶
type DockerfileImageBuildScriptTemplateConfig struct { DockerfileName string ImageName string ContextUnix string ContextWindows string ContainerRuntime string }
DockerfileImageBuildScriptTemplateConfig represents template config used by ImagePush script
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