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
- func (d *Dockerfile) BuildContextFiles() (files []string)
- func (d *Dockerfile) Dump() string
- func (d *Dockerfile) FindBaseImage(buildArgs map[string]string, target string) string
- func (d *Dockerfile) FindUserStatement(buildArgs map[string]string, baseImageEnv map[string]string, target string) string
- 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) BuildContextFiles ¶ added in v0.5.20
func (d *Dockerfile) BuildContextFiles() (files []string)
BuildContextFiles traverses a build stage and returns a list of any file path that would affect the build context
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.