Documentation ¶
Index ¶
- type MockContainer
- func (mc *MockContainer) Close() common.Executor
- func (mc *MockContainer) CopyIn(containerPath string, hostPath string, useGitIgnore bool) common.Executor
- func (mc *MockContainer) CopyOut(hostPath string, containerPath string) common.Executor
- func (mc *MockContainer) Create(capAdd []string, capDrop []string) common.Executor
- func (mc *MockContainer) Exec(command []string, env map[string]string, user, workdir string) common.Executor
- func (mc *MockContainer) Pull(forcePull bool) common.Executor
- func (mc *MockContainer) Remove() common.Executor
- func (mc *MockContainer) Start(attach bool) common.Executor
- type MockContainerService
- func (mcs *MockContainerService) BuildImage(input types.BuildImageInput) common.Executor
- func (mcs *MockContainerService) ImageExistsLocally(ctx context.Context, imageName string, platform string) (bool, error)
- func (mcs *MockContainerService) NewContainer(input types.NewContainerInput) types.Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContainer ¶
func (*MockContainer) Close ¶
func (mc *MockContainer) Close() 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) Remove ¶
func (mc *MockContainer) Remove() common.Executor
type MockContainerService ¶
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
Click to show internal directories.
Click to hide internal directories.