docker

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
	Flags  []string // Any flags such as `--from=...` for `COPY`.
	Value  []string // The contents of the command (ex: `ubuntu:xenial`)
}

Command represents a command in a Dockerfile

type Parser

type Parser struct{}

Parser is a Dockerfile parser

func (*Parser) Unmarshal

func (dp *Parser) Unmarshal(p []byte, v interface{}) error

Unmarshal unmarshals Dockerfiles

Jump to

Keyboard shortcuts

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