Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/go-sigma/sigma/pkg/handlers/distribution/clients (interfaces: Clients)
Generated by this command:
mockgen -destination=mocks/clients.go -package=mocks github.com/go-sigma/sigma/pkg/handlers/distribution/clients Clients
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/go-sigma/sigma/pkg/handlers/distribution/clients (interfaces: ClientsFactory)
Generated by this command:
mockgen -destination=mocks/clients_factory.go -package=mocks github.com/go-sigma/sigma/pkg/handlers/distribution/clients ClientsFactory
Package mocks is a generated GoMock package.
Index ¶
- type MockClients
- func (m *MockClients) AuthToken() error
- func (m *MockClients) DoRequest(arg0 context.Context, arg1, arg2 string, arg3 http.Header, arg4 ...io.Reader) (int, http.Header, io.ReadCloser, error)
- func (m *MockClients) EXPECT() *MockClientsMockRecorder
- func (m *MockClients) GetBlob(arg0 context.Context, arg1 string, arg2 digest.Digest) (distribution.Descriptor, io.ReadCloser, error)
- func (m *MockClients) GetManifest(arg0 context.Context, arg1, arg2 string) (distribution.Manifest, distribution.Descriptor, error)
- func (m *MockClients) HeadBlob(arg0 context.Context, arg1 string, arg2 digest.Digest) (distribution.Descriptor, error)
- func (m *MockClients) HeadManifest(arg0 context.Context, arg1, arg2 string) (bool, error)
- func (m *MockClients) PutBlob(arg0 context.Context, arg1 string, arg2 digest.Digest, arg3 io.Reader) error
- type MockClientsFactory
- type MockClientsFactoryMockRecorder
- type MockClientsMockRecorder
- func (mr *MockClientsMockRecorder) AuthToken() *gomock.Call
- func (mr *MockClientsMockRecorder) DoRequest(arg0, arg1, arg2, arg3 any, arg4 ...any) *gomock.Call
- func (mr *MockClientsMockRecorder) GetBlob(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockClientsMockRecorder) GetManifest(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockClientsMockRecorder) HeadBlob(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockClientsMockRecorder) HeadManifest(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockClientsMockRecorder) PutBlob(arg0, arg1, arg2, arg3 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClients ¶
type MockClients struct {
// contains filtered or unexported fields
}
MockClients is a mock of Clients interface.
func NewMockClients ¶
func NewMockClients(ctrl *gomock.Controller) *MockClients
NewMockClients creates a new mock instance.
func (*MockClients) AuthToken ¶
func (m *MockClients) AuthToken() error
AuthToken mocks base method.
func (*MockClients) DoRequest ¶
func (m *MockClients) DoRequest(arg0 context.Context, arg1, arg2 string, arg3 http.Header, arg4 ...io.Reader) (int, http.Header, io.ReadCloser, error)
DoRequest mocks base method.
func (*MockClients) EXPECT ¶
func (m *MockClients) EXPECT() *MockClientsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClients) GetBlob ¶
func (m *MockClients) GetBlob(arg0 context.Context, arg1 string, arg2 digest.Digest) (distribution.Descriptor, io.ReadCloser, error)
GetBlob mocks base method.
func (*MockClients) GetManifest ¶
func (m *MockClients) GetManifest(arg0 context.Context, arg1, arg2 string) (distribution.Manifest, distribution.Descriptor, error)
GetManifest mocks base method.
func (*MockClients) HeadBlob ¶
func (m *MockClients) HeadBlob(arg0 context.Context, arg1 string, arg2 digest.Digest) (distribution.Descriptor, error)
HeadBlob mocks base method.
func (*MockClients) HeadManifest ¶
HeadManifest mocks base method.
type MockClientsFactory ¶
type MockClientsFactory struct {
// contains filtered or unexported fields
}
MockClientsFactory is a mock of ClientsFactory interface.
func NewMockClientsFactory ¶
func NewMockClientsFactory(ctrl *gomock.Controller) *MockClientsFactory
NewMockClientsFactory creates a new mock instance.
func (*MockClientsFactory) EXPECT ¶
func (m *MockClientsFactory) EXPECT() *MockClientsFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientsFactory) New ¶
func (m *MockClientsFactory) New(arg0 configs.Configuration) (clients.Clients, error)
New mocks base method.
type MockClientsFactoryMockRecorder ¶
type MockClientsFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockClientsFactoryMockRecorder is the mock recorder for MockClientsFactory.
type MockClientsMockRecorder ¶
type MockClientsMockRecorder struct {
// contains filtered or unexported fields
}
MockClientsMockRecorder is the mock recorder for MockClients.
func (*MockClientsMockRecorder) AuthToken ¶
func (mr *MockClientsMockRecorder) AuthToken() *gomock.Call
AuthToken indicates an expected call of AuthToken.
func (*MockClientsMockRecorder) DoRequest ¶
func (mr *MockClientsMockRecorder) DoRequest(arg0, arg1, arg2, arg3 any, arg4 ...any) *gomock.Call
DoRequest indicates an expected call of DoRequest.
func (*MockClientsMockRecorder) GetBlob ¶
func (mr *MockClientsMockRecorder) GetBlob(arg0, arg1, arg2 any) *gomock.Call
GetBlob indicates an expected call of GetBlob.
func (*MockClientsMockRecorder) GetManifest ¶
func (mr *MockClientsMockRecorder) GetManifest(arg0, arg1, arg2 any) *gomock.Call
GetManifest indicates an expected call of GetManifest.
func (*MockClientsMockRecorder) HeadBlob ¶
func (mr *MockClientsMockRecorder) HeadBlob(arg0, arg1, arg2 any) *gomock.Call
HeadBlob indicates an expected call of HeadBlob.
func (*MockClientsMockRecorder) HeadManifest ¶
func (mr *MockClientsMockRecorder) HeadManifest(arg0, arg1, arg2 any) *gomock.Call
HeadManifest indicates an expected call of HeadManifest.