stage

package
v0.0.0-...-5b8b77a Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stage

type Stage interface {

	// Public interface:
	Commands() []interface{}
	DependsOn() []string
	IsNamed() bool
	IsValid() bool
	Name() string
	// contains filtered or unexported methods
}

Stage represents a single FROM with dependent commands.

type Stages

type Stages interface {

	// Public interface:
	All() []Stage
	NamedStage(string) Stage
	Named() []Stage
	Unnamed() []Stage
	// contains filtered or unexported methods
}

Stages represents all build stages parsed out of the Dockerfile. Items are ordered accordingly to how they are defnied in the Dockerfile.

func ReadStages

func ReadStages(inputs []interface{}) (Stages, []error)

ReadStages reads the stages out of the source commands.

Jump to

Keyboard shortcuts

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