dockerfile

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

GetConfig returns the transformer config

func (*DockerfileDetector) Init

Init Initializes the transformer

func (*DockerfileDetector) Transform

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

GetConfig returns the transformer config

func (*DockerfileImageBuildScript) Init

Init Initializes the transformer

func (*DockerfileImageBuildScript) Transform

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

GetConfig returns the transformer config

func (*DockerfileParser) Init

Init Initializes the transformer

func (*DockerfileParser) Transform

Transform transforms the artifacts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL