mocks

package
v0.0.0-...-4fa15db Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *API

NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*API) GetInfo

func (_m *API) GetInfo(ctx context.Context, imgFullname string) (*types.Image, error)

GetInfo provides a mock function with given fields: ctx, imgFullname

func (*API) ListImages

func (_m *API) ListImages(ctx context.Context, user string, pageN int, pageSize int) ([]*types.Image, int, error)

ListImages provides a mock function with given fields: ctx, user, pageN, pageSize

func (*API) ListLocalImages

func (_m *API) ListLocalImages() ([]*types.Image, error)

ListLocalImages provides a mock function with given fields:

func (*API) NewImage

func (_m *API) NewImage(imgName string) (*types.Image, error)

NewImage provides a mock function with given fields: imgName

func (*API) Pull

func (_m *API) Pull(ctx context.Context, imgName string, policy image.PullPolicy) (*types.Image, error)

Pull provides a mock function with given fields: ctx, imgName, policy

func (*API) Push

func (_m *API) Push(ctx context.Context, img *types.Image, force bool) error

Push provides a mock function with given fields: ctx, img, force

func (*API) RemoveImage

func (_m *API) RemoveImage(ctx context.Context, img *types.Image) error

RemoveImage provides a mock function with given fields: ctx, img

func (*API) RemoveLocalImage

func (_m *API) RemoveLocalImage(ctx context.Context, img *types.Image) error

RemoveLocalImage provides a mock function with given fields: ctx, img

type Option

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *Option

NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Option) Execute

func (_m *Option) Execute(_a0 *image.Options)

Execute provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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