docker

package module
v0.0.0-...-009aeea Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerStatusExited   = "exited"
	DockerStatusRunning  = "running"
	DockerStatusStarting = "starting"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerOptions

type ContainerOptions struct {
	Name       string
	ImageName  string
	Options    map[string]string
	MountPath  string
	PortExpose string
}

type Docker

type Docker struct {
	ContainerID   string
	ContainerName string
}

func (*Docker) IsInstalled

func (d *Docker) IsInstalled() bool

func (*Docker) RemoveIfExists

func (d *Docker) RemoveIfExists() error

func (*Docker) Start

func (d *Docker) Start(c ContainerOptions) (string, error)

func (*Docker) Stop

func (d *Docker) Stop() error

func (*Docker) WaitForStartOrKill

func (d *Docker) WaitForStartOrKill(timeout int) error

Jump to

Keyboard shortcuts

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