Documentation ¶
Index ¶
- type DockerBuildContext
- type DockerClient
- func (client *DockerClient) ImageBuild(ctx context.Context, buildContext io.Reader, ...) (dockertypes.ImageBuildResponse, error)
- func (client *DockerClient) ImagePull(ctx context.Context, ref string, options dockerimagetypes.PullOptions) (io.ReadCloser, error)
- func (client *DockerClient) ImagePush(ctx context.Context, image string, options dockerimagetypes.PushOptions) (io.ReadCloser, error)
- func (client *DockerClient) ImageRemove(ctx context.Context, imageID string, options dockerimagetypes.RemoveOptions) ([]dockerimagetypes.DeleteResponse, error)
- func (client *DockerClient) ImageTag(ctx context.Context, imageID, ref string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerBuildContext ¶
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 ¶
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 dockerimagetypes.PullOptions) (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 dockerimagetypes.PushOptions) (io.ReadCloser, error)
ImagePush is a mock method to push docker images to registry
func (*DockerClient) ImageRemove ¶
func (client *DockerClient) ImageRemove(ctx context.Context, imageID string, options dockerimagetypes.RemoveOptions) ([]dockerimagetypes.DeleteResponse, error)
ImageRemove is a mock method to remove docker images locally
Click to show internal directories.
Click to hide internal directories.