mocks

package
v2.1.21 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: source_client.go

Generated by this command:

mockgen -destination mocks/mock_source_client.go -source source_client.go -package mocks

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 MockClientManager

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

MockClientManager is a mock of ClientManager interface.

func NewMockClientManager

func NewMockClientManager(ctrl *gomock.Controller) *MockClientManager

NewMockClientManager creates a new mock instance.

func (*MockClientManager) EXPECT

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

func (*MockClientManager) GetClient

func (m *MockClientManager) GetClient(scheme string, options ...source.Option) (source.ResourceClient, bool)

GetClient mocks base method.

func (*MockClientManager) ListClients

func (m *MockClientManager) ListClients() []string

ListClients mocks base method.

func (*MockClientManager) Register

func (m *MockClientManager) Register(scheme string, resourceClient source.ResourceClient, adapter source.RequestAdapter, hook ...source.Hook) error

Register mocks base method.

func (*MockClientManager) UnRegister

func (m *MockClientManager) UnRegister(scheme string)

UnRegister mocks base method.

type MockClientManagerMockRecorder

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

MockClientManagerMockRecorder is the mock recorder for MockClientManager.

func (*MockClientManagerMockRecorder) GetClient

func (mr *MockClientManagerMockRecorder) GetClient(scheme any, options ...any) *gomock.Call

GetClient indicates an expected call of GetClient.

func (*MockClientManagerMockRecorder) ListClients

func (mr *MockClientManagerMockRecorder) ListClients() *gomock.Call

ListClients indicates an expected call of ListClients.

func (*MockClientManagerMockRecorder) Register

func (mr *MockClientManagerMockRecorder) Register(scheme, resourceClient, adapter any, hook ...any) *gomock.Call

Register indicates an expected call of Register.

func (*MockClientManagerMockRecorder) UnRegister

func (mr *MockClientManagerMockRecorder) UnRegister(scheme any) *gomock.Call

UnRegister indicates an expected call of UnRegister.

type MockHook

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

MockHook is a mock of Hook interface.

func NewMockHook

func NewMockHook(ctrl *gomock.Controller) *MockHook

NewMockHook creates a new mock instance.

func (*MockHook) AfterResponse

func (m *MockHook) AfterResponse(response *source.Response) error

AfterResponse mocks base method.

func (*MockHook) BeforeRequest

func (m *MockHook) BeforeRequest(request *source.Request) error

BeforeRequest mocks base method.

func (*MockHook) EXPECT

func (m *MockHook) EXPECT() *MockHookMockRecorder

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

type MockHookMockRecorder

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

MockHookMockRecorder is the mock recorder for MockHook.

func (*MockHookMockRecorder) AfterResponse

func (mr *MockHookMockRecorder) AfterResponse(response any) *gomock.Call

AfterResponse indicates an expected call of AfterResponse.

func (*MockHookMockRecorder) BeforeRequest

func (mr *MockHookMockRecorder) BeforeRequest(request any) *gomock.Call

BeforeRequest indicates an expected call of BeforeRequest.

type MockResourceClient

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

MockResourceClient is a mock of ResourceClient interface.

func NewMockResourceClient

func NewMockResourceClient(ctrl *gomock.Controller) *MockResourceClient

NewMockResourceClient creates a new mock instance.

func (*MockResourceClient) Download

func (m *MockResourceClient) Download(request *source.Request) (*source.Response, error)

Download mocks base method.

func (*MockResourceClient) EXPECT

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

func (*MockResourceClient) GetContentLength

func (m *MockResourceClient) GetContentLength(request *source.Request) (int64, error)

GetContentLength mocks base method.

func (*MockResourceClient) GetLastModified

func (m *MockResourceClient) GetLastModified(request *source.Request) (int64, error)

GetLastModified mocks base method.

func (*MockResourceClient) IsExpired

func (m *MockResourceClient) IsExpired(request *source.Request, info *source.ExpireInfo) (bool, error)

IsExpired mocks base method.

func (*MockResourceClient) IsSupportRange

func (m *MockResourceClient) IsSupportRange(request *source.Request) (bool, error)

IsSupportRange mocks base method.

type MockResourceClientMockRecorder

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

MockResourceClientMockRecorder is the mock recorder for MockResourceClient.

func (*MockResourceClientMockRecorder) Download

func (mr *MockResourceClientMockRecorder) Download(request any) *gomock.Call

Download indicates an expected call of Download.

func (*MockResourceClientMockRecorder) GetContentLength

func (mr *MockResourceClientMockRecorder) GetContentLength(request any) *gomock.Call

GetContentLength indicates an expected call of GetContentLength.

func (*MockResourceClientMockRecorder) GetLastModified

func (mr *MockResourceClientMockRecorder) GetLastModified(request any) *gomock.Call

GetLastModified indicates an expected call of GetLastModified.

func (*MockResourceClientMockRecorder) IsExpired

func (mr *MockResourceClientMockRecorder) IsExpired(request, info any) *gomock.Call

IsExpired indicates an expected call of IsExpired.

func (*MockResourceClientMockRecorder) IsSupportRange

func (mr *MockResourceClientMockRecorder) IsSupportRange(request any) *gomock.Call

IsSupportRange indicates an expected call of IsSupportRange.

type MockResourceLister

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

MockResourceLister is a mock of ResourceLister interface.

func NewMockResourceLister

func NewMockResourceLister(ctrl *gomock.Controller) *MockResourceLister

NewMockResourceLister creates a new mock instance.

func (*MockResourceLister) EXPECT

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

func (*MockResourceLister) List

func (m *MockResourceLister) List(request *source.Request) ([]source.URLEntry, error)

List mocks base method.

type MockResourceListerMockRecorder

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

MockResourceListerMockRecorder is the mock recorder for MockResourceLister.

func (*MockResourceListerMockRecorder) List

func (mr *MockResourceListerMockRecorder) List(request any) *gomock.Call

List indicates an expected call of List.

type MockResourceMetadataGetter added in v2.0.5

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

MockResourceMetadataGetter is a mock of ResourceMetadataGetter interface.

func NewMockResourceMetadataGetter added in v2.0.5

func NewMockResourceMetadataGetter(ctrl *gomock.Controller) *MockResourceMetadataGetter

NewMockResourceMetadataGetter creates a new mock instance.

func (*MockResourceMetadataGetter) EXPECT added in v2.0.5

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

func (*MockResourceMetadataGetter) GetMetadata added in v2.0.5

func (m *MockResourceMetadataGetter) GetMetadata(request *source.Request) (*source.Metadata, error)

GetMetadata mocks base method.

type MockResourceMetadataGetterMockRecorder added in v2.0.5

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

MockResourceMetadataGetterMockRecorder is the mock recorder for MockResourceMetadataGetter.

func (*MockResourceMetadataGetterMockRecorder) GetMetadata added in v2.0.5

func (mr *MockResourceMetadataGetterMockRecorder) GetMetadata(request any) *gomock.Call

GetMetadata indicates an expected call of GetMetadata.

Jump to

Keyboard shortcuts

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