mocks

package
v1.3.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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