Documentation ¶
Index ¶
- Constants
- type DockerWrapper
- func (t *DockerWrapper) Close()
- func (t *DockerWrapper) CopyFolderToTar(containerID, folderDestination, tarDestination string)
- func (t *DockerWrapper) CopyTarToFloder(tarDestination, containerID, folderDestination string)
- func (t *DockerWrapper) ExcludeMountsByPattern(mounts []Mount, excludePatterns []ExcludePattern) []Mount
- func (t *DockerWrapper) GetAllContainers() []types.Container
- func (t *DockerWrapper) GetContainerIDByName(containerName string) string
- func (t *DockerWrapper) GetContainerIDsByNamePatterns(namePatterns []InterruptPattern) []string
- func (t *DockerWrapper) GetContainerIDsOfMounts(mounts []Mount) []string
- func (t *DockerWrapper) GetContainerNameByID(containerID string) string
- func (t *DockerWrapper) GetCorrectContainerName(names []string) string
- func (t *DockerWrapper) GetDockerInspectXMLByContainerName(containerName string) string
- func (t *DockerWrapper) GetMountsOfContainers(containers []types.Container) []Mount
- func (t *DockerWrapper) GetMyselfContainerID() string
- func (t *DockerWrapper) SelectRunningContainersByIDs(ids []string) []string
- func (t *DockerWrapper) StartContainersByIDs(ids *[]string, panicOnError bool)
- func (t *DockerWrapper) StopContainersByIDs(ids []string, panicOnError bool)
- type EmulateFlag
- type ExcludePattern
- type InterruptPattern
- type Mount
Constants ¶
View Source
const StartRetries = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerWrapper ¶
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
Click to show internal directories.
Click to hide internal directories.