docker

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

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

Docker type

func New

func New() *Docker

New returns initialized Docker instance

func (*Docker) Build

func (d *Docker) Build() (err error)

Build the image for the given Dockerfile

func (*Docker) Create

func (d *Docker) Create() (err error)

Create the container with the given image

func (*Docker) Exec

func (d *Docker) Exec() (err error)

Exec execute the given command into the given container

func (*Docker) GetContainer

func (d *Docker) GetContainer() (container string)

GetContainer get the container ID

func (*Docker) GetImage

func (d *Docker) GetImage() (image string)

GetImage get the image name

func (*Docker) GetPath

func (d *Docker) GetPath() (path string)

GetPath get the image name

func (*Docker) List

func (d *Docker) List() (err error)

List return the list of containers based on the given path

func (*Docker) Remove

func (d *Docker) Remove() (err error)

Remove the container

func (*Docker) SetArgs

func (d *Docker) SetArgs(args []string)

SetArgs set the arguments list

func (*Docker) SetCommand

func (d *Docker) SetCommand(command []string)

SetCommand set the command

func (*Docker) SetContainer

func (d *Docker) SetContainer(container string)

SetContainer set the latest container ID based on the path

func (*Docker) SetContext

func (d *Docker) SetContext(path string)

SetContext set the context path

func (*Docker) SetDockerfile

func (d *Docker) SetDockerfile(path string)

SetDockerfile set the Dockerfile path

func (*Docker) SetImage

func (d *Docker) SetImage(image string)

SetImage set the image name

func (*Docker) SetPath

func (d *Docker) SetPath(path string)

SetPath set the path

func (*Docker) SetVerbose

func (d *Docker) SetVerbose(verbose bool)

SetVerbose set the context path

func (*Docker) Start

func (d *Docker) Start() (err error)

Start the given container

func (*Docker) Stop

func (d *Docker) Stop() (err error)

Stop the given container

Jump to

Keyboard shortcuts

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