Documentation ¶
Index ¶
- func EnvToSortedArr(env map[string]string) (r []string)
- type Add
- type Base
- func (stg *Base[T, BT]) ExpandDependencies(ctx context.Context, c stage.Conveyor, baseEnv map[string]string) error
- func (stg *Base[T, BT]) ExpandInstruction(_ stage.Conveyor, env map[string]string) error
- func (stg *Base[T, BT]) GetExpandedEnv(c stage.Conveyor) map[string]string
- func (stg *Base[T, BT]) HasPrevStage() bool
- func (stg *Base[T, BT]) IsStapelStage() bool
- func (stg *Base[T, BT]) PrepareImage(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, ...) error
- func (stg *Base[T, BT]) UsesBuildContext() bool
- type Cmd
- type Copy
- func (stg *Copy) ExpandDependencies(ctx context.Context, c stage.Conveyor, baseEnv map[string]string) error
- func (stg *Copy) ExpandInstruction(c stage.Conveyor, env map[string]string) error
- func (stg *Copy) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, ...) (string, error)
- type Entrypoint
- type Env
- type Expose
- type From
- func (stg *From) ExpandDependencies(ctx context.Context, c stage.Conveyor, baseEnv map[string]string) error
- func (s *From) FetchDependencies(_ context.Context, _ stage.Conveyor, _ container_backend.ContainerBackend, ...) error
- func (s *From) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, ...) (string, error)
- func (stg *From) HasPrevStage() bool
- func (stg *From) IsStapelStage() bool
- func (s *From) PreRun(ctx context.Context, _ stage.Conveyor) error
- func (stg *From) PrepareImage(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, ...) error
- func (stg *From) UsesBuildContext() bool
- type Healthcheck
- type InstructionExpander
- type Label
- type Maintainer
- type OnBuild
- type Run
- func (stg *Run) ExpandDependencies(ctx context.Context, c stage.Conveyor, baseEnv map[string]string) error
- func (stg *Run) ExpandInstruction(c stage.Conveyor, env map[string]string) error
- func (stg *Run) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, ...) (string, error)
- type Shell
- type StopSignal
- type User
- type Volume
- type Workdir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvToSortedArr ¶ added in v1.2.198
Types ¶
type Add ¶ added in v1.2.184
type Add struct { *Base[*instructions.AddCommand, *backend_instruction.Add] }
func NewAdd ¶ added in v1.2.184
func NewAdd(i *dockerfile.DockerfileStageInstruction[*instructions.AddCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Add
func (*Add) GetDependencies ¶ added in v1.2.184
func (stg *Add) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Base ¶
type Base[T dockerfile.InstructionDataInterface, BT container_backend.InstructionInterface] struct { *stage.BaseStage // contains filtered or unexported fields }
func NewBase ¶
func NewBase[T dockerfile.InstructionDataInterface, BT container_backend.InstructionInterface](instruction *dockerfile.DockerfileStageInstruction[T], backendInstruction BT, dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Base[T, BT]
func (*Base[T, BT]) ExpandDependencies ¶ added in v1.2.198
func (*Base[T, BT]) ExpandInstruction ¶ added in v1.2.185
func (*Base[T, BT]) GetExpandedEnv ¶ added in v1.2.198
func (*Base[T, BT]) HasPrevStage ¶
func (*Base[T, BT]) IsStapelStage ¶
func (*Base[T, BT]) PrepareImage ¶ added in v1.2.184
func (stg *Base[T, BT]) PrepareImage(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevBuiltImage, stageImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) error
func (*Base[T, BT]) UsesBuildContext ¶ added in v1.2.184
type Cmd ¶ added in v1.2.184
type Cmd struct { *Base[*instructions.CmdCommand, *backend_instruction.Cmd] }
func NewCmd ¶ added in v1.2.184
func NewCmd(i *dockerfile.DockerfileStageInstruction[*instructions.CmdCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Cmd
func (*Cmd) GetDependencies ¶ added in v1.2.184
func (stg *Cmd) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Copy ¶ added in v1.2.184
type Copy struct { *Base[*instructions.CopyCommand, *backend_instruction.Copy] }
func NewCopy ¶ added in v1.2.184
func NewCopy(i *dockerfile.DockerfileStageInstruction[*instructions.CopyCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Copy
func (*Copy) ExpandDependencies ¶ added in v1.2.198
func (*Copy) ExpandInstruction ¶ added in v1.2.185
func (*Copy) GetDependencies ¶ added in v1.2.184
func (stg *Copy) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Entrypoint ¶ added in v1.2.184
type Entrypoint struct { *Base[*instructions.EntrypointCommand, *backend_instruction.Entrypoint] }
func NewEntrypoint ¶ added in v1.2.184
func NewEntrypoint(i *dockerfile.DockerfileStageInstruction[*instructions.EntrypointCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Entrypoint
func (*Entrypoint) GetDependencies ¶ added in v1.2.184
func (stg *Entrypoint) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Env ¶ added in v1.2.184
type Env struct { *Base[*instructions.EnvCommand, *backend_instruction.Env] }
func NewEnv ¶ added in v1.2.184
func NewEnv(i *dockerfile.DockerfileStageInstruction[*instructions.EnvCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Env
func (*Env) GetDependencies ¶ added in v1.2.184
func (stg *Env) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Expose ¶ added in v1.2.184
type Expose struct { *Base[*instructions.ExposeCommand, *backend_instruction.Expose] }
func NewExpose ¶ added in v1.2.184
func NewExpose(i *dockerfile.DockerfileStageInstruction[*instructions.ExposeCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Expose
func (*Expose) GetDependencies ¶ added in v1.2.184
func (stg *Expose) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type From ¶ added in v1.2.236
func NewFrom ¶ added in v1.2.236
func NewFrom(baseImageReference, baseImageRepoDigest string, opts *stage.BaseStageOptions) *From
func (*From) ExpandDependencies ¶ added in v1.2.236
func (*From) FetchDependencies ¶ added in v1.2.236
func (s *From) FetchDependencies(_ context.Context, _ stage.Conveyor, _ container_backend.ContainerBackend, _ docker_registry.GenericApiInterface) error
func (*From) GetDependencies ¶ added in v1.2.236
func (s *From) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
func (*From) HasPrevStage ¶ added in v1.2.236
func (*From) IsStapelStage ¶ added in v1.2.236
func (*From) PrepareImage ¶ added in v1.2.236
func (stg *From) PrepareImage(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevBuiltImage, stageImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) error
func (*From) UsesBuildContext ¶ added in v1.2.236
type Healthcheck ¶ added in v1.2.184
type Healthcheck struct { *Base[*instructions.HealthCheckCommand, *backend_instruction.Healthcheck] }
func NewHealthcheck ¶ added in v1.2.184
func NewHealthcheck(i *dockerfile.DockerfileStageInstruction[*instructions.HealthCheckCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Healthcheck
func (*Healthcheck) GetDependencies ¶ added in v1.2.184
func (stg *Healthcheck) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type InstructionExpander ¶ added in v1.2.185
type Label ¶ added in v1.2.184
type Label struct { *Base[*instructions.LabelCommand, *backend_instruction.Label] }
func NewLabel ¶ added in v1.2.184
func NewLabel(i *dockerfile.DockerfileStageInstruction[*instructions.LabelCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Label
func (*Label) GetDependencies ¶ added in v1.2.184
func (stg *Label) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Maintainer ¶ added in v1.2.184
type Maintainer struct { *Base[*instructions.MaintainerCommand, *backend_instruction.Maintainer] }
func NewMaintainer ¶ added in v1.2.184
func NewMaintainer(i *dockerfile.DockerfileStageInstruction[*instructions.MaintainerCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Maintainer
func (*Maintainer) GetDependencies ¶ added in v1.2.184
func (stg *Maintainer) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type OnBuild ¶ added in v1.2.184
type OnBuild struct { *Base[*instructions.OnbuildCommand, *backend_instruction.OnBuild] }
func NewOnBuild ¶ added in v1.2.184
func NewOnBuild(i *dockerfile.DockerfileStageInstruction[*instructions.OnbuildCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *OnBuild
func (*OnBuild) GetDependencies ¶ added in v1.2.184
func (stg *OnBuild) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Run ¶
type Run struct { *Base[*instructions.RunCommand, *backend_instruction.Run] }
func NewRun ¶
func NewRun(i *dockerfile.DockerfileStageInstruction[*instructions.RunCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Run
func (*Run) ExpandDependencies ¶ added in v1.2.198
func (*Run) ExpandInstruction ¶ added in v1.2.198
func (*Run) GetDependencies ¶
func (stg *Run) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Shell ¶ added in v1.2.184
type Shell struct { *Base[*instructions.ShellCommand, *backend_instruction.Shell] }
func NewShell ¶ added in v1.2.184
func NewShell(i *dockerfile.DockerfileStageInstruction[*instructions.ShellCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Shell
func (*Shell) GetDependencies ¶ added in v1.2.184
func (stg *Shell) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type StopSignal ¶ added in v1.2.184
type StopSignal struct { *Base[*instructions.StopSignalCommand, *backend_instruction.StopSignal] }
func NewStopSignal ¶ added in v1.2.184
func NewStopSignal(i *dockerfile.DockerfileStageInstruction[*instructions.StopSignalCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *StopSignal
func (*StopSignal) GetDependencies ¶ added in v1.2.184
func (stg *StopSignal) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type User ¶ added in v1.2.184
type User struct { *Base[*instructions.UserCommand, *backend_instruction.User] }
func NewUser ¶ added in v1.2.184
func NewUser(i *dockerfile.DockerfileStageInstruction[*instructions.UserCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *User
func (*User) GetDependencies ¶ added in v1.2.184
func (stg *User) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Volume ¶ added in v1.2.184
type Volume struct { *Base[*instructions.VolumeCommand, *backend_instruction.Volume] }
func NewVolume ¶ added in v1.2.184
func NewVolume(i *dockerfile.DockerfileStageInstruction[*instructions.VolumeCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Volume
func (*Volume) GetDependencies ¶ added in v1.2.184
func (stg *Volume) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
type Workdir ¶ added in v1.2.184
type Workdir struct { *Base[*instructions.WorkdirCommand, *backend_instruction.Workdir] }
func NewWorkdir ¶ added in v1.2.184
func NewWorkdir(i *dockerfile.DockerfileStageInstruction[*instructions.WorkdirCommand], dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Workdir
func (*Workdir) GetDependencies ¶ added in v1.2.184
func (stg *Workdir) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error)
Click to show internal directories.
Click to hide internal directories.