dockerwrapper

package
v0.0.0-...-d5261e2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const StartRetries = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerWrapper

type DockerWrapper struct {
	Docker *client.Client
}

func (*DockerWrapper) Close

func (t *DockerWrapper) Close()

func (*DockerWrapper) CopyFolderToTar

func (t *DockerWrapper) CopyFolderToTar(containerID, folderDestination, tarDestination string)

func (*DockerWrapper) CopyTarToFloder

func (t *DockerWrapper) CopyTarToFloder(tarDestination, containerID, folderDestination string)

func (*DockerWrapper) ExcludeMountsByPattern

func (t *DockerWrapper) ExcludeMountsByPattern(mounts []Mount, excludePatterns []ExcludePattern) []Mount

func (*DockerWrapper) GetAllContainers

func (t *DockerWrapper) GetAllContainers() []types.Container

func (*DockerWrapper) GetContainerIDByName

func (t *DockerWrapper) GetContainerIDByName(containerName string) string

func (*DockerWrapper) GetContainerIDsByNamePatterns

func (t *DockerWrapper) GetContainerIDsByNamePatterns(namePatterns []InterruptPattern) []string

func (*DockerWrapper) GetContainerIDsOfMounts

func (t *DockerWrapper) GetContainerIDsOfMounts(mounts []Mount) []string

func (*DockerWrapper) GetContainerNameByID

func (t *DockerWrapper) GetContainerNameByID(containerID string) string

func (*DockerWrapper) GetCorrectContainerName

func (t *DockerWrapper) GetCorrectContainerName(names []string) string

func (*DockerWrapper) GetDockerInspectXMLByContainerName

func (t *DockerWrapper) GetDockerInspectXMLByContainerName(containerName string) string

it is hostname

func (*DockerWrapper) GetMountsOfContainers

func (t *DockerWrapper) GetMountsOfContainers(containers []types.Container) []Mount

func (*DockerWrapper) GetMyselfContainerID

func (t *DockerWrapper) GetMyselfContainerID() string

it is hostname

func (*DockerWrapper) SelectRunningContainersByIDs

func (t *DockerWrapper) SelectRunningContainersByIDs(ids []string) []string

func (*DockerWrapper) StartContainersByIDs

func (t *DockerWrapper) StartContainersByIDs(ids *[]string, panicOnError bool)

func (*DockerWrapper) StopContainersByIDs

func (t *DockerWrapper) StopContainersByIDs(ids []string, panicOnError bool)

type EmulateFlag

type EmulateFlag bool

type ExcludePattern

type ExcludePattern string

func NewExcludePatterns

func NewExcludePatterns(strArr []string) []ExcludePattern

type InterruptPattern

type InterruptPattern string

func NewInterruptPatterns

func NewInterruptPatterns(strArr []string) []InterruptPattern

type Mount

type Mount struct {
	ContainerID   string
	ContainerName string
	MountDest     string
}

Jump to

Keyboard shortcuts

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