mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 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 Docker

type Docker struct {
	mock.Mock
}

func (*Docker) CommitContainer

func (_m *Docker) CommitContainer(ctr string, image string) (*dockerclient.Image, error)

func (*Docker) EstimateImagePullSize

func (_m *Docker) EstimateImagePullSize(images []string) (uint64, error)

func (*Docker) FindContainer

func (_m *Docker) FindContainer(ctr string) (*dockerclient.Container, error)

func (*Docker) FindImage

func (_m *Docker) FindImage(image string) (*dockerclient.Image, error)

func (*Docker) FindImageByHash

func (_m *Docker) FindImageByHash(imageHash string, checkAllLayers bool) (*dockerclient.Image, error)

func (*Docker) GetContainerStats

func (_m *Docker) GetContainerStats(containerID string, timeout time.Duration) (*dockerclient.Stats, error)

func (*Docker) GetImageHash

func (_m *Docker) GetImageHash(image string) (string, error)

func (*Docker) GetImagePullSize

func (_m *Docker) GetImagePullSize(images []string) (uint64, error)

func (*Docker) LoadImage

func (_m *Docker) LoadImage(reader io.Reader) error

func (*Docker) PullImage

func (_m *Docker) PullImage(image string) error

func (*Docker) PushImage

func (_m *Docker) PushImage(image string) error

func (*Docker) RemoveImage

func (_m *Docker) RemoveImage(image string) error

func (*Docker) SaveImages

func (_m *Docker) SaveImages(images []string, writer io.Writer) error

func (*Docker) TagImage

func (_m *Docker) TagImage(oldImage string, newImage string) error

Jump to

Keyboard shortcuts

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