Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockClientManager
- func (m *MockClientManager) EXPECT() *MockClientManagerMockRecorder
- func (m *MockClientManager) GetClient(scheme string, options ...source.Option) (source.ResourceClient, bool)
- func (m *MockClientManager) ListClients() []string
- func (m *MockClientManager) Register(scheme string, resourceClient source.ResourceClient, ...) error
- func (m *MockClientManager) UnRegister(scheme string)
- type MockClientManagerMockRecorder
- func (mr *MockClientManagerMockRecorder) GetClient(scheme interface{}, options ...interface{}) *gomock.Call
- func (mr *MockClientManagerMockRecorder) ListClients() *gomock.Call
- func (mr *MockClientManagerMockRecorder) Register(scheme, resourceClient, adapter interface{}, hook ...interface{}) *gomock.Call
- func (mr *MockClientManagerMockRecorder) UnRegister(scheme interface{}) *gomock.Call
- type MockHook
- type MockHookMockRecorder
- type MockResourceClient
- func (m *MockResourceClient) Download(request *source.Request) (*source.Response, error)
- func (m *MockResourceClient) EXPECT() *MockResourceClientMockRecorder
- func (m *MockResourceClient) GetContentLength(request *source.Request) (int64, error)
- func (m *MockResourceClient) GetLastModified(request *source.Request) (int64, error)
- func (m *MockResourceClient) IsExpired(request *source.Request, info *source.ExpireInfo) (bool, error)
- func (m *MockResourceClient) IsSupportRange(request *source.Request) (bool, error)
- type MockResourceClientMockRecorder
- func (mr *MockResourceClientMockRecorder) Download(request interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) GetContentLength(request interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) GetLastModified(request interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) IsExpired(request, info interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) IsSupportRange(request interface{}) *gomock.Call
- type MockResourceLister
- type MockResourceListerMockRecorder
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 ¶
func (m *MockClientManager) EXPECT() *MockClientManagerMockRecorder
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 interface{}, options ...interface{}) *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 interface{}, hook ...interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockClientManagerMockRecorder) UnRegister ¶
func (mr *MockClientManagerMockRecorder) UnRegister(scheme interface{}) *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 ¶
AfterResponse mocks base method.
func (*MockHook) BeforeRequest ¶
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 interface{}) *gomock.Call
AfterResponse indicates an expected call of AfterResponse.
func (*MockHookMockRecorder) BeforeRequest ¶
func (mr *MockHookMockRecorder) BeforeRequest(request interface{}) *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) EXPECT ¶
func (m *MockResourceClient) EXPECT() *MockResourceClientMockRecorder
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 interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockResourceClientMockRecorder) GetContentLength ¶
func (mr *MockResourceClientMockRecorder) GetContentLength(request interface{}) *gomock.Call
GetContentLength indicates an expected call of GetContentLength.
func (*MockResourceClientMockRecorder) GetLastModified ¶
func (mr *MockResourceClientMockRecorder) GetLastModified(request interface{}) *gomock.Call
GetLastModified indicates an expected call of GetLastModified.
func (*MockResourceClientMockRecorder) IsExpired ¶
func (mr *MockResourceClientMockRecorder) IsExpired(request, info interface{}) *gomock.Call
IsExpired indicates an expected call of IsExpired.
func (*MockResourceClientMockRecorder) IsSupportRange ¶
func (mr *MockResourceClientMockRecorder) IsSupportRange(request interface{}) *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 ¶
func (m *MockResourceLister) EXPECT() *MockResourceListerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 interface{}) *gomock.Call
List indicates an expected call of List.