Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct { Cmd string // lowercased command name (ex: `from`) SubCmd string // for ONBUILD only this holds the sub-command JSON bool // whether the value is written in json form Original string // The original source line StartLine int // The original source line number which starts this command EndLine int // The original source line number which ends this command Flags []string // Any flags such as `--from=...` for `COPY`. Value []string // The contents of the command (ex: `ubuntu:xenial`) }
Command represents a single line (layer) in a Dockerfile. For example `FROM ubuntu:xenial`
type Option ¶
type Option func(*options) error
Option is a functional option for remote operations.
func BaseDir ¶
BaseDir is the directory that files are copied relative to. If not set, the base directory of the Dockerfile is used.
func IgnoreRuns ¶
func IgnoreRuns() Option
IgnoreRuns tells the parser to ignore RUN statements rather than failing
Click to show internal directories.
Click to hide internal directories.