dockerfile

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Copy

type Copy struct {
	Src  string
	Dst  string
	From maybe.Maybe[string]
}

func (Copy) FormatInstruction

func (c Copy) FormatInstruction() string

type Dockerfile

type Dockerfile struct {
	SyntaxHeader Syntax
	Stages       []Stage
}

func (Dockerfile) Format

func (d Dockerfile) Format() string

type Env

type Env struct {
	K, V string
}

func (Env) FormatInstruction

func (e Env) FormatInstruction() string

type Instruction

type Instruction interface {
	FormatInstruction() string
}

type Mount

type Mount interface {
	FormatMount() string
}

type MountBind

type MountBind struct {
	Target    string
	Source    maybe.Maybe[string]
	From      maybe.Maybe[string]
	ReadWrite maybe.Maybe[bool]
}

func (MountBind) FormatMount

func (m MountBind) FormatMount() string

type MountCache

type MountCache struct {
	ID       maybe.Maybe[string]
	Target   string
	ReadOnly maybe.Maybe[bool]
	From     maybe.Maybe[string]
	Source   maybe.Maybe[string]
	Mode     maybe.Maybe[string]
	UID      maybe.Maybe[string]
	GID      maybe.Maybe[string]
}

func (MountCache) FormatMount

func (m MountCache) FormatMount() string

type MountSSH

type MountSSH struct {
	ID       maybe.Maybe[string]
	Target   maybe.Maybe[string]
	Required maybe.Maybe[bool]
	Mode     maybe.Maybe[string]
	UID      maybe.Maybe[string]
	GID      maybe.Maybe[string]
}

func (MountSSH) FormatMount

func (m MountSSH) FormatMount() string

type MountSecret

type MountSecret struct {
	ID       maybe.Maybe[string]
	Target   maybe.Maybe[string]
	Required maybe.Maybe[bool]
	Mode     maybe.Maybe[string]
	UID      maybe.Maybe[string]
	GID      maybe.Maybe[string]
}

func (MountSecret) FormatMount

func (m MountSecret) FormatMount() string

type Run

type Run struct {
	Mounts  []Mount
	Network string
	Command string
}

func (Run) FormatInstruction

func (r Run) FormatInstruction() string

type Stage

type Stage struct {
	From         string
	As           maybe.Maybe[string]
	Instructions []Instruction
}

func (Stage) Format

func (s Stage) Format() string

type Syntax

type Syntax string
const (
	Scratch = "scratch"

	Dockerfile14 Syntax = "docker/dockerfile:1.4"
)

type Workdir

type Workdir string

func (Workdir) FormatInstruction

func (w Workdir) FormatInstruction() string

Jump to

Keyboard shortcuts

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