Documentation ¶
Index ¶
- func DumpAll(result []*parser.Node) string
- func DumpNode(node *parser.Node) string
- func EnsureDockerfileHasFinalStageName(dockerfileContent string, defaultLastStageName string) (string, string, error)
- func RemoveSyntaxVersion(dockerfileContent string) string
- func ReplaceInDockerfile(dockerfileContent string, node *parser.Node) string
- type BaseStage
- type Dockerfile
- type KeyValue
- type Preamble
- type Stage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveSyntaxVersion ¶
Types ¶
type Dockerfile ¶
type Dockerfile struct { Raw string Directives []*parser.Directive Preamble *Preamble Stages []*Stage StagesByTarget map[string]*Stage }
func Parse ¶
func Parse(dockerfileContent string) (*Dockerfile, error)
func (*Dockerfile) Dump ¶
func (d *Dockerfile) Dump() string
func (*Dockerfile) FindBaseImage ¶
func (d *Dockerfile) FindBaseImage(buildArgs map[string]string, target string) string
func (*Dockerfile) FindUserStatement ¶
Click to show internal directories.
Click to hide internal directories.