dockerfile

package
v1.2.187 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeCopyAddSourcesForPathMatcher added in v1.2.185

func NormalizeCopyAddSourcesForPathMatcher(wildcards []string) []string

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 DockerfileOptions struct {
	Target    string
	BuildArgs map[string]string
	AddHost   []string
	Network   string
	SSH       string
}

type DockerfileStage

type DockerfileStage struct {
	Dockerfile   *Dockerfile
	Dependencies []*DockerfileStage
	BaseStage    *DockerfileStage

	BaseName     string
	Index        int
	StageName    string
	Platform     string
	Instructions []DockerfileStageInstructionInterface
}

func NewDockerfileStage

func NewDockerfileStage(index int, baseName, stageName string, instructions []DockerfileStageInstructionInterface, platform string) *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
	Expander               Expander
}

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) 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) error
}

type DockerfileStageInstructionOptions added in v1.2.186

type DockerfileStageInstructionOptions struct {
	Expander Expander
}

type ExpandWordFunc added in v1.2.186

type ExpandWordFunc func(word string, env map[string]string) (string, error)

type ExpandWordsFunc added in v1.2.186

type ExpandWordsFunc func(word string, env map[string]string) (string, error)

type Expander added in v1.2.186

type Expander interface {
	ProcessWordWithMap(word string, env map[string]string) (string, error)
	ProcessWordsWithMap(word string, env map[string]string) ([]string, error)
}

type InstructionDataInterface added in v1.2.184

type InstructionDataInterface interface {
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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