dockerfile

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 7 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 {
	instructions.Command
	Name string
}

func (*Command) MarshalJSON

func (c *Command) MarshalJSON() ([]byte, error)

type Dockerfile

type Dockerfile struct {
	MetaArgs []*MetaArg
	Stages   []*Stage
}

func Parse

func Parse(path string) (*Dockerfile, error)

func ParseReader

func ParseReader(r io.Reader) (*Dockerfile, error)

func (*Dockerfile) Expand

func (d *Dockerfile) Expand(env SingleWordExpander)

type From

type From struct {
	Stage   *FromStage `json:",omitempty"`
	Scratch bool       `json:",omitempty"`
	Image   *string    `json:",omitempty"`
}

type FromStage

type FromStage struct {
	Named *string `json:",omitempty"`
	Index int
}

type MetaArg

type MetaArg struct {
	instructions.ArgCommand `json:"-"`
	Key                     string
	DefaultValue            *string `json:","`
	ProvidedValue           *string `json:","`
	Value                   *string `json:","`
}

type SingleWordExpander

type SingleWordExpander instructions.SingleWordExpander

type Stage

type Stage struct {
	instructions.Stage
	Name     *string `json:"As,omitempty"`
	From     From
	Commands []*Command
}

Jump to

Keyboard shortcuts

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