dockerfile

package
v0.0.0-...-6340669 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 6 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
	SubCmd    string
	Flags     []string
	Value     []string
	Original  string
	StartLine int
	EndLine   int
	JSON      bool
	Stage     int
}

Command is the struct for each dockerfile command

type Parser

type Parser struct{}

Parser is a Dockerfile parser

func (*Parser) Parse

func (p *Parser) Parse(contents []byte) (interface{}, error)

Parse parses Dockerfile

type Resource

type Resource struct {
	Stages map[string][]Command `json:"stages"`
}

Resource holds a list of stages

Jump to

Keyboard shortcuts

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