Documentation ¶
Index ¶
- func NormalizeCopyAddSourcesForPathMatcher(wildcards []string) []string
- func SetupDockerfileStagesDependencies(stages []*DockerfileStage) error
- type Dockerfile
- type DockerfileOptions
- type DockerfileStage
- type DockerfileStageInstruction
- func (i *DockerfileStageInstruction[T]) Expand(env map[string]string, opts ExpandOptions) error
- func (i *DockerfileStageInstruction[T]) GetDependenciesByStageRef() map[string]*DockerfileStage
- func (i *DockerfileStageInstruction[T]) GetDependencyByStageRef(ref string) *DockerfileStage
- func (i *DockerfileStageInstruction[T]) GetInstructionData() InstructionDataInterface
- func (i *DockerfileStageInstruction[T]) SetDependencyByStageRef(ref string, dep *DockerfileStage)
- type DockerfileStageInstructionInterface
- type DockerfileStageInstructionOptions
- type ExpandOptions
- type Expander
- type ExpanderFactory
- type InstructionDataInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeCopyAddSourcesForPathMatcher ¶ added in v1.2.185
func SetupDockerfileStagesDependencies ¶ added in v1.2.181
func SetupDockerfileStagesDependencies(stages []*DockerfileStage) error
Types ¶
type Dockerfile ¶
type Dockerfile struct { DockerfileOptions Stages []*DockerfileStage }
func NewDockerfile ¶
func NewDockerfile(stages []*DockerfileStage, opts DockerfileOptions) *Dockerfile
func (*Dockerfile) FindStage ¶ added in v1.2.184
func (df *Dockerfile) FindStage(name string) *DockerfileStage
func (*Dockerfile) GetTargetStage ¶ added in v1.2.184
func (df *Dockerfile) GetTargetStage() (*DockerfileStage, error)
type DockerfileOptions ¶ added in v1.2.178
type DockerfileStage ¶
type DockerfileStage struct { Dockerfile *Dockerfile Dependencies []*DockerfileStage BaseStage *DockerfileStage ExpanderFactory ExpanderFactory BaseName string Index int StageName string Platform string Instructions []DockerfileStageInstructionInterface }
func NewDockerfileStage ¶
func NewDockerfileStage(index int, baseName, stageName string, instructions []DockerfileStageInstructionInterface, platform string, expanderFactory ExpanderFactory) *DockerfileStage
func (*DockerfileStage) AppendDependencyStage ¶ added in v1.2.184
func (stage *DockerfileStage) AppendDependencyStage(dep *DockerfileStage)
func (*DockerfileStage) HasStageName ¶ added in v1.2.181
func (stage *DockerfileStage) HasStageName() bool
func (*DockerfileStage) LogName ¶ added in v1.2.181
func (stage *DockerfileStage) LogName() string
func (*DockerfileStage) WerfImageName ¶ added in v1.2.184
func (stage *DockerfileStage) WerfImageName() string
type DockerfileStageInstruction ¶ added in v1.2.184
type DockerfileStageInstruction[T InstructionDataInterface] struct { Data T DependenciesByStageRef map[string]*DockerfileStage ExpanderFactory ExpanderFactory }
func NewDockerfileStageInstruction ¶ added in v1.2.184
func NewDockerfileStageInstruction[T InstructionDataInterface](data T, opts DockerfileStageInstructionOptions) *DockerfileStageInstruction[T]
func (*DockerfileStageInstruction[T]) Expand ¶ added in v1.2.186
func (i *DockerfileStageInstruction[T]) Expand(env map[string]string, opts ExpandOptions) error
func (*DockerfileStageInstruction[T]) GetDependenciesByStageRef ¶ added in v1.2.184
func (i *DockerfileStageInstruction[T]) GetDependenciesByStageRef() map[string]*DockerfileStage
func (*DockerfileStageInstruction[T]) GetDependencyByStageRef ¶ added in v1.2.184
func (i *DockerfileStageInstruction[T]) GetDependencyByStageRef(ref string) *DockerfileStage
func (*DockerfileStageInstruction[T]) GetInstructionData ¶ added in v1.2.184
func (i *DockerfileStageInstruction[T]) GetInstructionData() InstructionDataInterface
func (*DockerfileStageInstruction[T]) SetDependencyByStageRef ¶ added in v1.2.184
func (i *DockerfileStageInstruction[T]) SetDependencyByStageRef(ref string, dep *DockerfileStage)
type DockerfileStageInstructionInterface ¶ added in v1.2.184
type DockerfileStageInstructionInterface interface { SetDependencyByStageRef(ref string, dep *DockerfileStage) GetDependencyByStageRef(ref string) *DockerfileStage GetDependenciesByStageRef() map[string]*DockerfileStage GetInstructionData() InstructionDataInterface Expand(env map[string]string, opts ExpandOptions) error }
type DockerfileStageInstructionOptions ¶ added in v1.2.186
type DockerfileStageInstructionOptions struct {
ExpanderFactory ExpanderFactory
}
type ExpandOptions ¶ added in v1.2.188
type ExpandOptions struct {
SkipUnsetEnv bool
}
type ExpanderFactory ¶ added in v1.2.188
type ExpanderFactory interface {
GetExpander(opts ExpandOptions) Expander
}
type InstructionDataInterface ¶ added in v1.2.184
type InstructionDataInterface interface {
Name() string
}
Click to show internal directories.
Click to hide internal directories.