Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockOriginHTTPClient
- func (m *MockOriginHTTPClient) Download(url string, headers map[string]string, checkCode httpclient.StatusCodeChecker) (*http.Response, error)
- func (m *MockOriginHTTPClient) EXPECT() *MockOriginHTTPClientMockRecorder
- func (m *MockOriginHTTPClient) GetContentLength(url string, headers map[string]string) (int64, int, error)
- func (m *MockOriginHTTPClient) IsExpired(url string, headers map[string]string, lastModified int64, eTag string) (bool, error)
- func (m *MockOriginHTTPClient) IsSupportRange(url string, headers map[string]string) (bool, error)
- func (m *MockOriginHTTPClient) RegisterTLSConfig(rawURL string, insecure bool, caBlock []strfmt.Base64)
- type MockOriginHTTPClientMockRecorder
- func (mr *MockOriginHTTPClientMockRecorder) Download(url, headers, checkCode interface{}) *gomock.Call
- func (mr *MockOriginHTTPClientMockRecorder) GetContentLength(url, headers interface{}) *gomock.Call
- func (mr *MockOriginHTTPClientMockRecorder) IsExpired(url, headers, lastModified, eTag interface{}) *gomock.Call
- func (mr *MockOriginHTTPClientMockRecorder) IsSupportRange(url, headers interface{}) *gomock.Call
- func (mr *MockOriginHTTPClientMockRecorder) RegisterTLSConfig(rawURL, insecure, caBlock interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOriginHTTPClient ¶
type MockOriginHTTPClient struct {
// contains filtered or unexported fields
}
MockOriginHTTPClient is a mock of OriginHTTPClient interface
func NewMockOriginHTTPClient ¶
func NewMockOriginHTTPClient(ctrl *gomock.Controller) *MockOriginHTTPClient
NewMockOriginHTTPClient creates a new mock instance
func (*MockOriginHTTPClient) Download ¶
func (m *MockOriginHTTPClient) Download(url string, headers map[string]string, checkCode httpclient.StatusCodeChecker) (*http.Response, error)
Download mocks base method
func (*MockOriginHTTPClient) EXPECT ¶
func (m *MockOriginHTTPClient) EXPECT() *MockOriginHTTPClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOriginHTTPClient) GetContentLength ¶
func (m *MockOriginHTTPClient) GetContentLength(url string, headers map[string]string) (int64, int, error)
GetContentLength mocks base method
func (*MockOriginHTTPClient) IsExpired ¶
func (m *MockOriginHTTPClient) IsExpired(url string, headers map[string]string, lastModified int64, eTag string) (bool, error)
IsExpired mocks base method
func (*MockOriginHTTPClient) IsSupportRange ¶
IsSupportRange mocks base method
func (*MockOriginHTTPClient) RegisterTLSConfig ¶
func (m *MockOriginHTTPClient) RegisterTLSConfig(rawURL string, insecure bool, caBlock []strfmt.Base64)
RegisterTLSConfig mocks base method
type MockOriginHTTPClientMockRecorder ¶
type MockOriginHTTPClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOriginHTTPClientMockRecorder is the mock recorder for MockOriginHTTPClient
func (*MockOriginHTTPClientMockRecorder) Download ¶
func (mr *MockOriginHTTPClientMockRecorder) Download(url, headers, checkCode interface{}) *gomock.Call
Download indicates an expected call of Download
func (*MockOriginHTTPClientMockRecorder) GetContentLength ¶
func (mr *MockOriginHTTPClientMockRecorder) GetContentLength(url, headers interface{}) *gomock.Call
GetContentLength indicates an expected call of GetContentLength
func (*MockOriginHTTPClientMockRecorder) IsExpired ¶
func (mr *MockOriginHTTPClientMockRecorder) IsExpired(url, headers, lastModified, eTag interface{}) *gomock.Call
IsExpired indicates an expected call of IsExpired
func (*MockOriginHTTPClientMockRecorder) IsSupportRange ¶
func (mr *MockOriginHTTPClientMockRecorder) IsSupportRange(url, headers interface{}) *gomock.Call
IsSupportRange indicates an expected call of IsSupportRange
func (*MockOriginHTTPClientMockRecorder) RegisterTLSConfig ¶
func (mr *MockOriginHTTPClientMockRecorder) RegisterTLSConfig(rawURL, insecure, caBlock interface{}) *gomock.Call
RegisterTLSConfig indicates an expected call of RegisterTLSConfig