Documentation ¶
Index ¶
- func EmitComment(out io.Writer, value string)
- func EmitInstruction(out io.Writer, instruction, value string)
- func Parse(input io.Reader, file *Dockerfile, source ...string) (err error)
- func ParseFile(name string, file *Dockerfile) (err error)
- type Add
- type Arg
- type Cmd
- type Comment
- type Copy
- type Dockerfile
- type Entrypoint
- type Env
- type Expose
- type From
- type Healthcheck
- type Label
- type Maintainer
- type Onbuild
- type Parser
- type Run
- type Shell
- type Statement
- type Stopsignal
- type Tokens
- type User
- type Volume
- type Workdir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitInstruction ¶
EmitInstruction writes an instruction
Types ¶
type Dockerfile ¶
type Entrypoint ¶
func (*Entrypoint) Emit ¶
func (e *Entrypoint) Emit(out io.Writer)
Emit writes ENTRYPOINT instructions
type Healthcheck ¶
func (*Healthcheck) Emit ¶
func (h *Healthcheck) Emit(out io.Writer)
Emit writes HEALTHCHECK instructions
type Maintainer ¶
func (*Maintainer) Emit ¶
func (m *Maintainer) Emit(out io.Writer)
Emit writes MAINTAINER instructions
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) Extend ¶
func (p *Parser) Extend(name string, extension func(file *Dockerfile, line int, tokens *Tokens) Statement) *Parser
Extends parser. Example:
type Include struct { Line int Reference string } parser.Extend("INCLUDE", func(file *Dockerfile, line int, tokens *Tokens) Statement { return &Include{Line: line, Reference: tokens.NextLine()} })
type Stopsignal ¶
func (*Stopsignal) Emit ¶
func (s *Stopsignal) Emit(out io.Writer)
Emit writes STOPSIGNAL instructions
type Tokens ¶
func (*Tokens) NextComment ¶
Click to show internal directories.
Click to hide internal directories.