docker

package
v0.0.0-...-c8daa42 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInfo

type ContainerInfo struct {
	Exists  bool
	Running bool
	ID      string
}

type Docker

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

func New

func New() (*Docker, error)

func (*Docker) Close

func (d *Docker) Close()

func (*Docker) ContainerInfo

func (d *Docker) ContainerInfo(containerName string) (ContainerInfo, error)

func (*Docker) ContainerPassed

func (d *Docker) ContainerPassed(containerID string) (bool, error)

func (*Docker) CreateContainer

func (d *Docker) CreateContainer(
	config *container.Config,
	hostConfig *container.HostConfig,
	networkID string,
	containerName string,
) (string, error)

func (*Docker) CreateNetwork

func (d *Docker) CreateNetwork(networkID string) error

func (*Docker) DestroyContainer

func (d *Docker) DestroyContainer(containerID string) error

func (*Docker) DestroyNetwork

func (d *Docker) DestroyNetwork(networkID string) error

func (*Docker) ImageExistsLocally

func (d *Docker) ImageExistsLocally(imageTag string) (bool, error)

func (*Docker) PullImage

func (d *Docker) PullImage(imageTag string) error

func (*Docker) StartContainer

func (d *Docker) StartContainer(containerID string) error

func (*Docker) WaitForContainerToFinish

func (d *Docker) WaitForContainerToFinish(containerID string) error

Jump to

Keyboard shortcuts

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