Documentation ¶
Index ¶
- type API
- func (_m *API) GetInfo(ctx context.Context, imgFullname string) (*types.Image, error)
- func (_m *API) ListImages(ctx context.Context, user string, pageN int, pageSize int) ([]*types.Image, int, error)
- func (_m *API) ListLocalImages() ([]*types.Image, error)
- func (_m *API) NewImage(imgName string) (*types.Image, error)
- func (_m *API) Pull(ctx context.Context, imgName string, policy image.PullPolicy) (*types.Image, error)
- func (_m *API) Push(ctx context.Context, img *types.Image, force bool) error
- func (_m *API) RemoveImage(ctx context.Context, img *types.Image) error
- func (_m *API) RemoveLocalImage(ctx context.Context, img *types.Image) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶
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) 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 ¶
ListLocalImages provides a mock function with given fields:
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) RemoveImage ¶
RemoveImage provides a mock function with given fields: ctx, img
Click to show internal directories.
Click to hide internal directories.