Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockResourceClient
- func (m *MockResourceClient) Download(arg0 *source.Request) (io.ReadCloser, error)
- func (m *MockResourceClient) DownloadWithExpireInfo(arg0 *source.Request) (io.ReadCloser, *source.ExpireInfo, error)
- func (m *MockResourceClient) EXPECT() *MockResourceClientMockRecorder
- func (m *MockResourceClient) GetContentLength(arg0 *source.Request) (int64, error)
- func (m *MockResourceClient) GetLastModified(arg0 *source.Request) (int64, error)
- func (m *MockResourceClient) IsExpired(arg0 *source.Request, arg1 *source.ExpireInfo) (bool, error)
- func (m *MockResourceClient) IsSupportRange(arg0 *source.Request) (bool, error)
- type MockResourceClientMockRecorder
- func (mr *MockResourceClientMockRecorder) Download(arg0 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) DownloadWithExpireInfo(arg0 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) GetContentLength(arg0 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) GetLastModified(arg0 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) IsExpired(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockResourceClientMockRecorder) IsSupportRange(arg0 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 *source.Request) (io.ReadCloser, error)
Download mocks base method.
func (*MockResourceClient) DownloadWithExpireInfo ¶
func (m *MockResourceClient) DownloadWithExpireInfo(arg0 *source.Request) (io.ReadCloser, *source.ExpireInfo, error)
DownloadWithExpireInfo 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 *source.Request) (int64, error)
GetContentLength mocks base method.
func (*MockResourceClient) GetLastModified ¶ added in v2.0.2
func (m *MockResourceClient) GetLastModified(arg0 *source.Request) (int64, error)
GetLastModified mocks base method.
func (*MockResourceClient) IsExpired ¶
func (m *MockResourceClient) IsExpired(arg0 *source.Request, arg1 *source.ExpireInfo) (bool, error)
IsExpired mocks base method.
func (*MockResourceClient) IsSupportRange ¶
func (m *MockResourceClient) IsSupportRange(arg0 *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(arg0 interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockResourceClientMockRecorder) DownloadWithExpireInfo ¶
func (mr *MockResourceClientMockRecorder) DownloadWithExpireInfo(arg0 interface{}) *gomock.Call
DownloadWithExpireInfo indicates an expected call of DownloadWithExpireInfo.
func (*MockResourceClientMockRecorder) GetContentLength ¶
func (mr *MockResourceClientMockRecorder) GetContentLength(arg0 interface{}) *gomock.Call
GetContentLength indicates an expected call of GetContentLength.
func (*MockResourceClientMockRecorder) GetLastModified ¶ added in v2.0.2
func (mr *MockResourceClientMockRecorder) GetLastModified(arg0 interface{}) *gomock.Call
GetLastModified indicates an expected call of GetLastModified.
func (*MockResourceClientMockRecorder) IsExpired ¶
func (mr *MockResourceClientMockRecorder) IsExpired(arg0, arg1 interface{}) *gomock.Call
IsExpired indicates an expected call of IsExpired.
func (*MockResourceClientMockRecorder) IsSupportRange ¶
func (mr *MockResourceClientMockRecorder) IsSupportRange(arg0 interface{}) *gomock.Call
IsSupportRange indicates an expected call of IsSupportRange.