mock

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerBuildContext

type DockerBuildContext struct {
	mock.Mock
}

func NewDockerBuildContext

func NewDockerBuildContext() *DockerBuildContext

NewDockerBuildContext creates a new mock for docker build context

func (*DockerBuildContext) GenerateContextFilesystem

func (context *DockerBuildContext) GenerateContextFilesystem() (*filesystem.ContextFilesystem, error)

type DockerClient

type DockerClient struct {
	mock.Mock
}

DockerClient is a docker client mock

func NewDockerClient

func NewDockerClient() *DockerClient

NewDockerClient creates a new mock for docker client

func (*DockerClient) ImageBuild

func (client *DockerClient) ImageBuild(ctx context.Context, buildContext io.Reader, options dockertypes.ImageBuildOptions) (dockertypes.ImageBuildResponse, error)

ImageBuild is mock method to build docker images

func (*DockerClient) ImagePull

func (client *DockerClient) ImagePull(ctx context.Context, ref string, options dockertypes.ImagePullOptions) (io.ReadCloser, error)

ImagePull is a mock method to pull docker images from registry

func (*DockerClient) ImagePush

func (client *DockerClient) ImagePush(ctx context.Context, image string, options dockertypes.ImagePushOptions) (io.ReadCloser, error)

ImagePush is a mock method to push docker images to registry

func (*DockerClient) ImageRemove

ImageRemove is a mock method to remove docker images locally

func (*DockerClient) ImageTag

func (client *DockerClient) ImageTag(ctx context.Context, imageID, ref string) error

ImageTag is a mock method to tag docker images

Jump to

Keyboard shortcuts

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