docker

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 12 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(cli *client.Client) error

func (*BuildCommand) Target

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

type Conf

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

func Env

func Env(key, value string) Conf

func Label

func Label(key, value string) Conf

func Network

func Network(name string) Conf

type PruneCommand

type PruneCommand struct {
}

func Prune

func Prune() *PruneCommand

func (*PruneCommand) Run

func (d *PruneCommand) Run(cli *client.Client) error

type RmContainerCommand

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

func RmContainer

func RmContainer(name string, silent bool) *RmContainerCommand

func (*RmContainerCommand) Run

func (d *RmContainerCommand) Run(cli *client.Client) error

type RmImageCommand

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

func RmImage

func RmImage(name string, silent bool) *RmImageCommand

func (*RmImageCommand) Run

func (d *RmImageCommand) Run(cli *client.Client) error

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(cli *client.Client) error

Jump to

Keyboard shortcuts

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