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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFacade

type MockFacade struct {
	mock.Mock
}

func (*MockFacade) DeleteRegistryImage

func (_m *MockFacade) DeleteRegistryImage(ctx datastore.Context, image string) error

func (*MockFacade) GetRegistryImage

func (_m *MockFacade) GetRegistryImage(ctx datastore.Context, image string) (*registrystore.Image, error)

func (*MockFacade) GetRegistryImages

func (_m *MockFacade) GetRegistryImages(ctx datastore.Context) ([]registrystore.Image, error)

func (*MockFacade) SearchRegistryLibraryByTag

func (_m *MockFacade) SearchRegistryLibraryByTag(ctx datastore.Context, library string, tag string) ([]registrystore.Image, error)

func (*MockFacade) SetRegistryImage

func (_m *MockFacade) SetRegistryImage(ctx datastore.Context, rImage *registrystore.Image) error

func (*MockFacade) VerifyTenantMounts

func (_m *MockFacade) VerifyTenantMounts(tenantid string) error

type Registry

type Registry struct {
	mock.Mock
}

func (*Registry) FindImage

func (_m *Registry) FindImage(rImg *registry.Image) (*dockerclient.Image, error)

func (*Registry) GetAddress

func (_m *Registry) GetAddress() string

func (*Registry) ImagePath

func (_m *Registry) ImagePath(image string) (string, error)

func (*Registry) PullImage

func (_m *Registry) PullImage(cancel <-chan time.Time, image string) error

func (*Registry) SetConnection

func (_m *Registry) SetConnection(conn client.Connection)

type RegistryIndex

type RegistryIndex struct {
	mock.Mock
}

func (*RegistryIndex) FindImage

func (_m *RegistryIndex) FindImage(image string) (*registry.Image, error)

func (*RegistryIndex) PushImage

func (_m *RegistryIndex) PushImage(image string, uuid string, hash string) error

func (*RegistryIndex) RemoveImage

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

func (*RegistryIndex) SearchLibraryByTag

func (_m *RegistryIndex) SearchLibraryByTag(library string, tag string) ([]registry.Image, error)

Jump to

Keyboard shortcuts

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