instruction

package
v1.2.181 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	InstructionEnv         stage.StageName = "ENV"
	InstructionCopy        stage.StageName = "COPY"
	InstructionAdd         stage.StageName = "ADD"
	InstructionRun         stage.StageName = "RUN"
	InstructionEntrypoint  stage.StageName = "ENTRYPOINT"
	InstructionCmd         stage.StageName = "CMD"
	InstructionUser        stage.StageName = "USER"
	InstructionWorkdir     stage.StageName = "WORKDIR"
	InstructionExpose      stage.StageName = "EXPOSE"
	InstructionVolume      stage.StageName = "VOLUME"
	InstructionOnBuild     stage.StageName = "ONBUILD"
	InstructionStopSignal  stage.StageName = "STOPSIGNAL"
	InstructionShell       stage.StageName = "SHELL"
	InstructionHealthcheck stage.StageName = "HEALTHCHECK"
	InstructionLabel       stage.StageName = "LABEL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	*stage.BaseStage
	// contains filtered or unexported fields
}

func NewBase

func NewBase(name stage.StageName, dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Base

func (*Base) HasPrevStage

func (stage *Base) HasPrevStage() bool

func (*Base) IsStapelStage

func (s *Base) IsStapelStage() bool

type Run

type Run struct {
	*Base
	// contains filtered or unexported fields
}

func NewRun

func NewRun(i *backend_instruction.Run, dependencies []*config.Dependency, hasPrevStage bool, opts *stage.BaseStageOptions) *Run

func (*Run) GetDependencies

func (stage *Run) GetDependencies(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *stage.StageImage) (string, error)

func (*Run) PrepareImage

func (stage *Run) PrepareImage(ctx context.Context, c stage.Conveyor, cb container_backend.ContainerBackend, prevBuiltImage, stageImage *stage.StageImage) error

Jump to

Keyboard shortcuts

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