mocks

package
v1.5.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

DockerManager is a mock that implements IDockerManager

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerManager

type DockerManager struct{}

func NewDockerManager

func NewDockerManager() *DockerManager

func (*DockerManager) CopyFileToVolume

func (mgr *DockerManager) CopyFileToVolume(ctx context.Context, volumeName string, sourcePath string, destPath string) error

func (*DockerManager) CopyFromContainer

func (mgr *DockerManager) CopyFromContainer(ctx context.Context, containerName string, sourcePath string, destPath string) error

func (*DockerManager) CreateVolume

func (mgr *DockerManager) CreateVolume(ctx context.Context, volumeName string) error

func (*DockerManager) GetImageConfig

func (mgr *DockerManager) GetImageConfig(image string) (map[string]interface{}, error)

func (*DockerManager) GetImageDigest

func (mgr *DockerManager) GetImageDigest(image string) (string, error)

func (*DockerManager) GetImageLabel

func (mgr *DockerManager) GetImageLabel(image, label string) (string, error)

func (*DockerManager) MkdirInVolume

func (mgr *DockerManager) MkdirInVolume(ctx context.Context, volumeName string, directory string) error

func (*DockerManager) RemoveVolume

func (mgr *DockerManager) RemoveVolume(ctx context.Context, volumeName string) error

func (*DockerManager) RunDockerCommand

func (mgr *DockerManager) RunDockerCommand(ctx context.Context, workingDir string, command ...string) error

func (*DockerManager) RunDockerCommandBuffered

func (mgr *DockerManager) RunDockerCommandBuffered(ctx context.Context, workingDir string, command ...string) (string, error)

func (*DockerManager) RunDockerCommandLine

func (mgr *DockerManager) RunDockerCommandLine(ctx context.Context, workingDir string, command string) error

func (*DockerManager) RunDockerComposeCommand

func (mgr *DockerManager) RunDockerComposeCommand(ctx context.Context, workingDir string, command ...string) error

func (*DockerManager) RunDockerComposeCommandReturnsStdout

func (mgr *DockerManager) RunDockerComposeCommandReturnsStdout(workingDir string, command ...string) ([]byte, error)

Jump to

Keyboard shortcuts

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