Documentation ¶
Index ¶
- func GetDockerStagesNameToIndexMap(stages []instructions.Stage) map[string]int
- func GetDockerTargetStageIndex(dockerStages []instructions.Stage, dockerTargetStage string) (int, error)
- func NewDockerfileStageFromBuildkitStage(index int, stage instructions.Stage, expanderFactory *ShlexExpanderFactory, ...) (*dockerfile.DockerfileStage, error)
- func ParseDockerfileWithBuildkit(dockerfileBytes []byte, opts dockerfile.DockerfileOptions) (*dockerfile.Dockerfile, error)
- func ResolveDockerStagesFromValue(stages []instructions.Stage)
- type DockerfileYaml
- type ShlexExpanderFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDockerStagesNameToIndexMap ¶
func GetDockerStagesNameToIndexMap(stages []instructions.Stage) map[string]int
func GetDockerTargetStageIndex ¶
func GetDockerTargetStageIndex(dockerStages []instructions.Stage, dockerTargetStage string) (int, error)
func NewDockerfileStageFromBuildkitStage ¶ added in v1.2.185
func NewDockerfileStageFromBuildkitStage(index int, stage instructions.Stage, expanderFactory *ShlexExpanderFactory, metaArgs, buildArgs map[string]string, dependenciesArgsKeys []string) (*dockerfile.DockerfileStage, error)
func ParseDockerfileWithBuildkit ¶
func ParseDockerfileWithBuildkit(dockerfileBytes []byte, opts dockerfile.DockerfileOptions) (*dockerfile.Dockerfile, error)
func ResolveDockerStagesFromValue ¶
func ResolveDockerStagesFromValue(stages []instructions.Stage)
Types ¶
type DockerfileYaml ¶
type DockerfileYaml struct{}
TODO: implement Dockerfile.yaml or werf.yaml section parser primitives and conversion to Dockerfile and DockerfileStage primitives
type ShlexExpanderFactory ¶ added in v1.2.188
type ShlexExpanderFactory struct {
EscapeToken rune
}
func NewShlexExpanderFactory ¶ added in v1.2.188
func NewShlexExpanderFactory(escapeToken rune) *ShlexExpanderFactory
func (*ShlexExpanderFactory) GetExpander ¶ added in v1.2.188
func (factory *ShlexExpanderFactory) GetExpander(opts dockerfile.ExpandOptions) dockerfile.Expander
Click to show internal directories.
Click to hide internal directories.