mock

package
v0.0.0-...-de93790 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContainer

type MockContainer struct {
	mock.Mock
}

func (*MockContainer) Close

func (mc *MockContainer) Close() common.Executor

func (*MockContainer) CopyIn

func (mc *MockContainer) CopyIn(containerPath string, hostPath string, useGitIgnore bool) common.Executor

func (*MockContainer) CopyOut

func (mc *MockContainer) CopyOut(hostPath string, containerPath string) common.Executor

func (*MockContainer) Create

func (mc *MockContainer) Create(capAdd []string, capDrop []string) common.Executor

func (*MockContainer) Exec

func (mc *MockContainer) Exec(command []string, env map[string]string, user, workdir string) common.Executor

func (*MockContainer) Pull

func (mc *MockContainer) Pull(forcePull bool) common.Executor

func (*MockContainer) Remove

func (mc *MockContainer) Remove() common.Executor

func (*MockContainer) Start

func (mc *MockContainer) Start(attach bool) common.Executor

type MockContainerService

type MockContainerService struct {
	mock.Mock
}

func (*MockContainerService) BuildImage

func (mcs *MockContainerService) BuildImage(input types.BuildImageInput) common.Executor

func (*MockContainerService) ImageExistsLocally

func (mcs *MockContainerService) ImageExistsLocally(ctx context.Context, imageName string, platform string) (bool, error)

ImageExistsLocally returns a boolean indicating if an image with the requested name, tag and architecture exists in the local docker image store

func (*MockContainerService) NewContainer

func (mcs *MockContainerService) NewContainer(input types.NewContainerInput) types.Container

Jump to

Keyboard shortcuts

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