Documentation ¶
Overview ¶
DockerManager is a mock that implements IDockerManager
Index ¶
- type DockerManager
- func (mgr *DockerManager) CopyFileToVolume(ctx context.Context, volumeName string, sourcePath string, destPath string) error
- func (mgr *DockerManager) CopyFromContainer(ctx context.Context, containerName string, sourcePath string, destPath string) error
- func (mgr *DockerManager) CreateVolume(ctx context.Context, volumeName string) error
- func (mgr *DockerManager) GetImageConfig(image string) (map[string]interface{}, error)
- func (mgr *DockerManager) GetImageDigest(image string) (string, error)
- func (mgr *DockerManager) GetImageLabel(image, label string) (string, error)
- func (mgr *DockerManager) MkdirInVolume(ctx context.Context, volumeName string, directory string) error
- func (mgr *DockerManager) RemoveVolume(ctx context.Context, volumeName string) error
- func (mgr *DockerManager) RunDockerCommand(ctx context.Context, workingDir string, command ...string) error
- func (mgr *DockerManager) RunDockerCommandBuffered(ctx context.Context, workingDir string, command ...string) (string, error)
- func (mgr *DockerManager) RunDockerCommandLine(ctx context.Context, workingDir string, command string) error
- func (mgr *DockerManager) RunDockerComposeCommand(ctx context.Context, workingDir string, command ...string) error
- func (mgr *DockerManager) RunDockerComposeCommandReturnsStdout(workingDir string, command ...string) ([]byte, error)
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 (*DockerManager) CopyFromContainer ¶
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 (*DockerManager) RemoveVolume ¶
func (mgr *DockerManager) RemoveVolume(ctx context.Context, volumeName string) error
func (*DockerManager) RunDockerCommand ¶
func (*DockerManager) RunDockerCommandBuffered ¶
func (*DockerManager) RunDockerCommandLine ¶
func (*DockerManager) RunDockerComposeCommand ¶
func (*DockerManager) RunDockerComposeCommandReturnsStdout ¶
func (mgr *DockerManager) RunDockerComposeCommandReturnsStdout(workingDir string, command ...string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.