docker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadIgnore

func ReadIgnore(f string) []string

Types

type BuildCommand

type BuildCommand struct {
	// contains filtered or unexported fields
}

func Build

func Build(image, context string) *BuildCommand

func (*BuildCommand) Exclude

func (d *BuildCommand) Exclude(files []string) *BuildCommand

func (*BuildCommand) Run

func (d *BuildCommand) Run(ctx *pipeline.StageContext) error

func (*BuildCommand) Target

func (d *BuildCommand) Target(t string) *BuildCommand

type Conf

type Conf interface {
	// contains filtered or unexported methods
}

func BindVolume added in v0.3.6

func BindVolume(source, target string) Conf

func Env

func Env(key, value string) Conf

func Expose added in v0.3.6

func Expose(host, port string) Conf

func Hostname added in v0.3.4

func Hostname(name string) Conf

func Label

func Label(key, value string) Conf

func Network

func Network(name string) Conf

func PortBinding added in v0.3.0

func PortBinding(hostPort, containerPort string) Conf

func Volume added in v0.3.0

func Volume(name, target string) Conf

type ErrorDetail added in v0.3.1

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine added in v0.3.1

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

type LogLine added in v0.3.1

type LogLine struct {
	Stream string `json:"stream"`
}

type PruneCommand

type PruneCommand struct {
}

func Prune

func Prune() *PruneCommand

func (*PruneCommand) Run

func (d *PruneCommand) Run(ctx *pipeline.StageContext) error

type RmContainerCommand

type RmContainerCommand struct {
	// contains filtered or unexported fields
}

func RmContainer

func RmContainer(name string, silent bool) *RmContainerCommand

func (*RmContainerCommand) Run

type RmImageCommand

type RmImageCommand struct {
	// contains filtered or unexported fields
}

func RmImage

func RmImage(name string, silent bool) *RmImageCommand

func (*RmImageCommand) Run

type RmVolumeCommand added in v0.3.6

type RmVolumeCommand struct {
	Volume string
}

func RmVolume added in v0.3.6

func RmVolume(volume string) *RmVolumeCommand

func (*RmVolumeCommand) Run added in v0.3.6

type RunCommand

type RunCommand struct {
	// contains filtered or unexported fields
}

func Run

func Run(cName, image string) *RunCommand

func (*RunCommand) Config

func (d *RunCommand) Config(confs ...Conf) *RunCommand

func (*RunCommand) Run

func (d *RunCommand) Run(ctx *pipeline.StageContext) error

Jump to

Keyboard shortcuts

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