dockerfile

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT 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 {
	instructions.Command
	Name        string
	Mounts      []*instructions.Mount
	NetworkMode instructions.NetworkMode
	Security    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
	ProvidedValue           *string
	Value                   *string
}

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