Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockResourceClient
- func (m *MockResourceClient) Download(arg0 context.Context, arg1 string, arg2 source.RequestHeader, ...) (io.ReadCloser, error)
- func (m *MockResourceClient) DownloadWithResponseHeader(arg0 context.Context, arg1 string, arg2 source.RequestHeader, ...) (io.ReadCloser, source.ResponseHeader, error)
- func (m *MockResourceClient) EXPECT() *MockResourceClientMockRecorder
- func (m *MockResourceClient) GetContentLength(arg0 context.Context, arg1 string, arg2 source.RequestHeader, ...) (int64, error)
- func (m *MockResourceClient) GetLastModifiedMillis(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (int64, error)
- func (m *MockResourceClient) IsExpired(arg0 context.Context, arg1 string, arg2 source.RequestHeader, ...) (bool, error)
- func (m *MockResourceClient) IsSupportRange(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (bool, error)
- type MockResourceClientMockRecorder
- func (mr *MockResourceClientMockRecorder) Download(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) DownloadWithResponseHeader(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) GetContentLength(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) GetLastModifiedMillis(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) IsExpired(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) IsSupportRange(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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(arg0 context.Context, arg1 string, arg2 source.RequestHeader, arg3 *rangeutils.Range) (io.ReadCloser, error)
Download mocks base method.
func (*MockResourceClient) DownloadWithResponseHeader ¶
func (m *MockResourceClient) DownloadWithResponseHeader(arg0 context.Context, arg1 string, arg2 source.RequestHeader, arg3 *rangeutils.Range) (io.ReadCloser, source.ResponseHeader, error)
DownloadWithResponseHeader mocks base method.
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(arg0 context.Context, arg1 string, arg2 source.RequestHeader, arg3 *rangeutils.Range) (int64, error)
GetContentLength mocks base method.
func (*MockResourceClient) GetLastModifiedMillis ¶
func (m *MockResourceClient) GetLastModifiedMillis(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (int64, error)
GetLastModifiedMillis mocks base method.
func (*MockResourceClient) IsExpired ¶
func (m *MockResourceClient) IsExpired(arg0 context.Context, arg1 string, arg2 source.RequestHeader, arg3 map[string]string) (bool, error)
IsExpired mocks base method.
func (*MockResourceClient) IsSupportRange ¶
func (m *MockResourceClient) IsSupportRange(arg0 context.Context, arg1 string, arg2 source.RequestHeader) (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(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockResourceClientMockRecorder) DownloadWithResponseHeader ¶
func (mr *MockResourceClientMockRecorder) DownloadWithResponseHeader(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
DownloadWithResponseHeader indicates an expected call of DownloadWithResponseHeader.
func (*MockResourceClientMockRecorder) GetContentLength ¶
func (mr *MockResourceClientMockRecorder) GetContentLength(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetContentLength indicates an expected call of GetContentLength.
func (*MockResourceClientMockRecorder) GetLastModifiedMillis ¶
func (mr *MockResourceClientMockRecorder) GetLastModifiedMillis(arg0, arg1, arg2 interface{}) *gomock.Call
GetLastModifiedMillis indicates an expected call of GetLastModifiedMillis.
func (*MockResourceClientMockRecorder) IsExpired ¶
func (mr *MockResourceClientMockRecorder) IsExpired(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
IsExpired indicates an expected call of IsExpired.
func (*MockResourceClientMockRecorder) IsSupportRange ¶
func (mr *MockResourceClientMockRecorder) IsSupportRange(arg0, arg1, arg2 interface{}) *gomock.Call
IsSupportRange indicates an expected call of IsSupportRange.