docker

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {

	// Lowercased command name (ex: `from`)
	Cmd string

	// For ONBUILD only this holds the sub-command
	SubCmd string

	// Whether the value is written in json form
	JSON bool

	// Any flags such as `--from=...` for `COPY`.
	Flags []string

	// The contents of the command (ex: `ubuntu:xenial`)
	Value []string

	// Stage indicates which stage the command is found in a multistage docker build
	Stage int
}

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