mocks

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Blobs

func (m *MockRepository) Blobs() registry.BlobStore

Blobs mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(arg0 context.Context, arg1 v1.Descriptor) error

Delete mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) Exists

func (m *MockRepository) Exists(arg0 context.Context, arg1 v1.Descriptor) (bool, error)

Exists mocks base method.

func (*MockRepository) Fetch

func (m *MockRepository) Fetch(arg0 context.Context, arg1 v1.Descriptor) (io.ReadCloser, error)

Fetch mocks base method.

func (*MockRepository) FetchReference

func (m *MockRepository) FetchReference(arg0 context.Context, arg1 string) (v1.Descriptor, io.ReadCloser, error)

FetchReference mocks base method.

func (*MockRepository) Manifests

func (m *MockRepository) Manifests() registry.ManifestStore

Manifests mocks base method.

func (*MockRepository) Push

func (m *MockRepository) Push(arg0 context.Context, arg1 v1.Descriptor, arg2 io.Reader) error

Push mocks base method.

func (*MockRepository) PushReference

func (m *MockRepository) PushReference(arg0 context.Context, arg1 v1.Descriptor, arg2 io.Reader, arg3 string) error

PushReference mocks base method.

func (*MockRepository) Referrers

func (m *MockRepository) Referrers(arg0 context.Context, arg1 v1.Descriptor, arg2 string, arg3 func([]v1.Descriptor) error) error

Referrers mocks base method.

func (*MockRepository) Resolve

func (m *MockRepository) Resolve(arg0 context.Context, arg1 string) (v1.Descriptor, error)

Resolve mocks base method.

func (*MockRepository) Tag

func (m *MockRepository) Tag(arg0 context.Context, arg1 v1.Descriptor, arg2 string) error

Tag mocks base method.

func (*MockRepository) Tags

func (m *MockRepository) Tags(arg0 context.Context, arg1 string, arg2 func([]string) error) error

Tags mocks base method.

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Blobs

func (mr *MockRepositoryMockRecorder) Blobs() *gomock.Call

Blobs indicates an expected call of Blobs.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) Exists

func (mr *MockRepositoryMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockRepositoryMockRecorder) Fetch

func (mr *MockRepositoryMockRecorder) Fetch(arg0, arg1 interface{}) *gomock.Call

Fetch indicates an expected call of Fetch.

func (*MockRepositoryMockRecorder) FetchReference

func (mr *MockRepositoryMockRecorder) FetchReference(arg0, arg1 interface{}) *gomock.Call

FetchReference indicates an expected call of FetchReference.

func (*MockRepositoryMockRecorder) Manifests

func (mr *MockRepositoryMockRecorder) Manifests() *gomock.Call

Manifests indicates an expected call of Manifests.

func (*MockRepositoryMockRecorder) Push

func (mr *MockRepositoryMockRecorder) Push(arg0, arg1, arg2 interface{}) *gomock.Call

Push indicates an expected call of Push.

func (*MockRepositoryMockRecorder) PushReference

func (mr *MockRepositoryMockRecorder) PushReference(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

PushReference indicates an expected call of PushReference.

func (*MockRepositoryMockRecorder) Referrers

func (mr *MockRepositoryMockRecorder) Referrers(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Referrers indicates an expected call of Referrers.

func (*MockRepositoryMockRecorder) Resolve

func (mr *MockRepositoryMockRecorder) Resolve(arg0, arg1 interface{}) *gomock.Call

Resolve indicates an expected call of Resolve.

func (*MockRepositoryMockRecorder) Tag

func (mr *MockRepositoryMockRecorder) Tag(arg0, arg1, arg2 interface{}) *gomock.Call

Tag indicates an expected call of Tag.

func (*MockRepositoryMockRecorder) Tags

func (mr *MockRepositoryMockRecorder) Tags(arg0, arg1, arg2 interface{}) *gomock.Call

Tags indicates an expected call of Tags.

type MockStorageClient

type MockStorageClient struct {
	// contains filtered or unexported fields
}

MockStorageClient is a mock of StorageClient interface.

func NewMockStorageClient

func NewMockStorageClient(ctrl *gomock.Controller) *MockStorageClient

NewMockStorageClient creates a new mock instance.

func (*MockStorageClient) CopyGraph

func (m *MockStorageClient) CopyGraph(ctx context.Context, srcStorage registry0.Repository, srcRef string, dstStorage registry0.Repository, dstRef string) (v1.Descriptor, error)

CopyGraph mocks base method.

func (*MockStorageClient) Destination

func (m *MockStorageClient) Destination(image registry.Artifact) string

Destination mocks base method.

func (*MockStorageClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorageClient) FetchBlob

func (m *MockStorageClient) FetchBlob(ctx context.Context, srcStorage registry0.Repository, descriptor v1.Descriptor) ([]byte, error)

FetchBlob mocks base method.

func (*MockStorageClient) FetchBytes

func (m *MockStorageClient) FetchBytes(ctx context.Context, srcStorage registry0.Repository, artifact registry.Artifact) (v1.Descriptor, []byte, error)

FetchBytes mocks base method.

func (*MockStorageClient) GetStorage

GetStorage mocks base method.

func (*MockStorageClient) Init

func (m *MockStorageClient) Init() error

Init mocks base method.

func (*MockStorageClient) Resolve

func (m *MockStorageClient) Resolve(ctx context.Context, srcStorage registry0.Repository, versionedImage string) (v1.Descriptor, error)

Resolve mocks base method.

func (*MockStorageClient) SetProject

func (m *MockStorageClient) SetProject(project string)

SetProject mocks base method.

func (*MockStorageClient) Tag added in v0.14.1

func (m *MockStorageClient) Tag(ctx context.Context, dstStorage registry0.Repository, desc v1.Descriptor, tag string) error

Tag mocks base method.

type MockStorageClientMockRecorder

type MockStorageClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorageClientMockRecorder is the mock recorder for MockStorageClient.

func (*MockStorageClientMockRecorder) CopyGraph

func (mr *MockStorageClientMockRecorder) CopyGraph(ctx, srcStorage, srcRef, dstStorage, dstRef interface{}) *gomock.Call

CopyGraph indicates an expected call of CopyGraph.

func (*MockStorageClientMockRecorder) Destination

func (mr *MockStorageClientMockRecorder) Destination(image interface{}) *gomock.Call

Destination indicates an expected call of Destination.

func (*MockStorageClientMockRecorder) FetchBlob

func (mr *MockStorageClientMockRecorder) FetchBlob(ctx, srcStorage, descriptor interface{}) *gomock.Call

FetchBlob indicates an expected call of FetchBlob.

func (*MockStorageClientMockRecorder) FetchBytes

func (mr *MockStorageClientMockRecorder) FetchBytes(ctx, srcStorage, artifact interface{}) *gomock.Call

FetchBytes indicates an expected call of FetchBytes.

func (*MockStorageClientMockRecorder) GetStorage

func (mr *MockStorageClientMockRecorder) GetStorage(ctx, image interface{}) *gomock.Call

GetStorage indicates an expected call of GetStorage.

func (*MockStorageClientMockRecorder) Init

Init indicates an expected call of Init.

func (*MockStorageClientMockRecorder) Resolve

func (mr *MockStorageClientMockRecorder) Resolve(ctx, srcStorage, versionedImage interface{}) *gomock.Call

Resolve indicates an expected call of Resolve.

func (*MockStorageClientMockRecorder) SetProject

func (mr *MockStorageClientMockRecorder) SetProject(project interface{}) *gomock.Call

SetProject indicates an expected call of SetProject.

func (*MockStorageClientMockRecorder) Tag added in v0.14.1

func (mr *MockStorageClientMockRecorder) Tag(ctx, dstStorage, desc, tag interface{}) *gomock.Call

Tag indicates an expected call of Tag.

Jump to

Keyboard shortcuts

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