dockerfile

package
v0.0.0-...-6bf0215 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBuildCmds

func ParseBuildCmds(d *Dockerfile) types.BuildCmds

ParseBuildCmds extracts RUN commands from the last dockerfile stage with #rundev or #rundev[PATTERN,..] annotation.

Types

type Cmd

type Cmd struct {
	Cmd  string
	Args []string
}

func ParseEntrypoint

func ParseEntrypoint(d *Dockerfile) (Cmd, error)

func (Cmd) Flatten

func (c Cmd) Flatten() []string

func (Cmd) String

func (c Cmd) String() string

type Dockerfile

type Dockerfile struct {
	// contains filtered or unexported fields
}

func ParseDockerfile

func ParseDockerfile(b []byte) (*Dockerfile, error)

func (*Dockerfile) Stmts

func (d *Dockerfile) Stmts() []*parser.Node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL