Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeCache
- func (fake *FakeCache) Entry(Url string) cache.CacheEntry
- func (fake *FakeCache) EntryArgsForCall(i int) string
- func (fake *FakeCache) EntryCallCount() int
- func (fake *FakeCache) EntryReturns(result1 cache.CacheEntry)
- func (fake *FakeCache) EntryReturnsOnCall(i int, result1 cache.CacheEntry)
- func (fake *FakeCache) Invocations() map[string][][]interface{}
- type FakeCacheEntry
- func (fake *FakeCacheEntry) Invocations() map[string][][]interface{}
- func (fake *FakeCacheEntry) Retrieve() (path string, etag string, err error)
- func (fake *FakeCacheEntry) RetrieveCallCount() int
- func (fake *FakeCacheEntry) RetrieveReturns(result1 string, result2 string, result3 error)
- func (fake *FakeCacheEntry) RetrieveReturnsOnCall(i int, result1 string, result2 string, result3 error)
- func (fake *FakeCacheEntry) Store(contents io.ReadCloser, etag string, checksum string, hashFunc hash.Hash) error
- func (fake *FakeCacheEntry) StoreArgsForCall(i int) (io.ReadCloser, string, string, hash.Hash)
- func (fake *FakeCacheEntry) StoreCallCount() int
- func (fake *FakeCacheEntry) StoreReturns(result1 error)
- func (fake *FakeCacheEntry) StoreReturnsOnCall(i int, result1 error)
- type FakeChecksumCalculator
- func (fake *FakeChecksumCalculator) CalculateChecksum(filePath string, hashFunc hash.Hash) (string, error)
- func (fake *FakeChecksumCalculator) CalculateChecksumArgsForCall(i int) (string, hash.Hash)
- func (fake *FakeChecksumCalculator) CalculateChecksumCallCount() int
- func (fake *FakeChecksumCalculator) CalculateChecksumReturns(result1 string, result2 error)
- func (fake *FakeChecksumCalculator) CalculateChecksumReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeChecksumCalculator) Invocations() map[string][][]interface{}
- type FakeEtagHelper
- func (fake *FakeEtagHelper) GetETagForUrl(url string) (string, error)
- func (fake *FakeEtagHelper) GetETagForUrlArgsForCall(i int) string
- func (fake *FakeEtagHelper) GetETagForUrlCallCount() int
- func (fake *FakeEtagHelper) GetETagForUrlReturns(result1 string, result2 error)
- func (fake *FakeEtagHelper) GetETagForUrlReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeEtagHelper) Invocations() map[string][][]interface{}
- func (fake *FakeEtagHelper) SetEtagForUrl(url string, etag string) error
- func (fake *FakeEtagHelper) SetEtagForUrlArgsForCall(i int) (string, string)
- func (fake *FakeEtagHelper) SetEtagForUrlCallCount() int
- func (fake *FakeEtagHelper) SetEtagForUrlReturns(result1 error)
- func (fake *FakeEtagHelper) SetEtagForUrlReturnsOnCall(i int, result1 error)
- type FakeHttpClient
- func (fake *FakeHttpClient) Do(req *http.Request) (*http.Response, error)
- func (fake *FakeHttpClient) DoArgsForCall(i int) *http.Request
- func (fake *FakeHttpClient) DoCallCount() int
- func (fake *FakeHttpClient) DoReturns(result1 *http.Response, result2 error)
- func (fake *FakeHttpClient) DoReturnsOnCall(i int, result1 *http.Response, result2 error)
- func (fake *FakeHttpClient) Invocations() map[string][][]interface{}
- type FakeHttpHelper
- func (fake *FakeHttpHelper) CreateHttpRequest(method string, url string) (download.HttpRequest, error)
- func (fake *FakeHttpHelper) CreateHttpRequestArgsForCall(i int) (string, string)
- func (fake *FakeHttpHelper) CreateHttpRequestCallCount() int
- func (fake *FakeHttpHelper) CreateHttpRequestReturns(result1 download.HttpRequest, result2 error)
- func (fake *FakeHttpHelper) CreateHttpRequestReturnsOnCall(i int, result1 download.HttpRequest, result2 error)
- func (fake *FakeHttpHelper) Invocations() map[string][][]interface{}
- type FakeHttpRequest
- func (fake *FakeHttpRequest) Invocations() map[string][][]interface{}
- func (fake *FakeHttpRequest) SendRequest() (download.HttpResponse, error)
- func (fake *FakeHttpRequest) SendRequestCallCount() int
- func (fake *FakeHttpRequest) SendRequestReturns(result1 download.HttpResponse, result2 error)
- func (fake *FakeHttpRequest) SendRequestReturnsOnCall(i int, result1 download.HttpResponse, result2 error)
- func (fake *FakeHttpRequest) SetHeader(key string, value string)
- func (fake *FakeHttpRequest) SetHeaderArgsForCall(i int) (string, string)
- func (fake *FakeHttpRequest) SetHeaderCallCount() int
- type FakeHttpResponse
- func (fake *FakeHttpResponse) GetBody() io.ReadCloser
- func (fake *FakeHttpResponse) GetBodyCallCount() int
- func (fake *FakeHttpResponse) GetBodyReturns(result1 io.ReadCloser)
- func (fake *FakeHttpResponse) GetBodyReturnsOnCall(i int, result1 io.ReadCloser)
- func (fake *FakeHttpResponse) GetHeader(name string) string
- func (fake *FakeHttpResponse) GetHeaderArgsForCall(i int) string
- func (fake *FakeHttpResponse) GetHeaderCallCount() int
- func (fake *FakeHttpResponse) GetHeaderReturns(result1 string)
- func (fake *FakeHttpResponse) GetHeaderReturnsOnCall(i int, result1 string)
- func (fake *FakeHttpResponse) GetStatusCode() int
- func (fake *FakeHttpResponse) GetStatusCodeCallCount() int
- func (fake *FakeHttpResponse) GetStatusCodeReturns(result1 int)
- func (fake *FakeHttpResponse) GetStatusCodeReturnsOnCall(i int, result1 int)
- func (fake *FakeHttpResponse) Invocations() map[string][][]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCache ¶
type FakeCache struct { EntryStub func(Url string) cache.CacheEntry // contains filtered or unexported fields }
func (*FakeCache) EntryArgsForCall ¶
func (*FakeCache) EntryCallCount ¶
func (*FakeCache) EntryReturns ¶
func (fake *FakeCache) EntryReturns(result1 cache.CacheEntry)
func (*FakeCache) EntryReturnsOnCall ¶
func (fake *FakeCache) EntryReturnsOnCall(i int, result1 cache.CacheEntry)
func (*FakeCache) Invocations ¶
type FakeCacheEntry ¶
type FakeCacheEntry struct { RetrieveStub func() (path string, etag string, err error) StoreStub func(contents io.ReadCloser, etag string, checksum string, hashFunc hash.Hash) error // contains filtered or unexported fields }
func (*FakeCacheEntry) Invocations ¶
func (fake *FakeCacheEntry) Invocations() map[string][][]interface{}
func (*FakeCacheEntry) Retrieve ¶
func (fake *FakeCacheEntry) Retrieve() (path string, etag string, err error)
func (*FakeCacheEntry) RetrieveCallCount ¶
func (fake *FakeCacheEntry) RetrieveCallCount() int
func (*FakeCacheEntry) RetrieveReturns ¶
func (fake *FakeCacheEntry) RetrieveReturns(result1 string, result2 string, result3 error)
func (*FakeCacheEntry) RetrieveReturnsOnCall ¶
func (fake *FakeCacheEntry) RetrieveReturnsOnCall(i int, result1 string, result2 string, result3 error)
func (*FakeCacheEntry) Store ¶
func (fake *FakeCacheEntry) Store(contents io.ReadCloser, etag string, checksum string, hashFunc hash.Hash) error
func (*FakeCacheEntry) StoreArgsForCall ¶
func (fake *FakeCacheEntry) StoreArgsForCall(i int) (io.ReadCloser, string, string, hash.Hash)
func (*FakeCacheEntry) StoreCallCount ¶
func (fake *FakeCacheEntry) StoreCallCount() int
func (*FakeCacheEntry) StoreReturns ¶
func (fake *FakeCacheEntry) StoreReturns(result1 error)
func (*FakeCacheEntry) StoreReturnsOnCall ¶
func (fake *FakeCacheEntry) StoreReturnsOnCall(i int, result1 error)
type FakeChecksumCalculator ¶
type FakeChecksumCalculator struct { CalculateChecksumStub func(filePath string, hashFunc hash.Hash) (string, error) // contains filtered or unexported fields }
func (*FakeChecksumCalculator) CalculateChecksum ¶
func (*FakeChecksumCalculator) CalculateChecksumArgsForCall ¶
func (fake *FakeChecksumCalculator) CalculateChecksumArgsForCall(i int) (string, hash.Hash)
func (*FakeChecksumCalculator) CalculateChecksumCallCount ¶
func (fake *FakeChecksumCalculator) CalculateChecksumCallCount() int
func (*FakeChecksumCalculator) CalculateChecksumReturns ¶
func (fake *FakeChecksumCalculator) CalculateChecksumReturns(result1 string, result2 error)
func (*FakeChecksumCalculator) CalculateChecksumReturnsOnCall ¶
func (fake *FakeChecksumCalculator) CalculateChecksumReturnsOnCall(i int, result1 string, result2 error)
func (*FakeChecksumCalculator) Invocations ¶
func (fake *FakeChecksumCalculator) Invocations() map[string][][]interface{}
type FakeEtagHelper ¶
type FakeEtagHelper struct { GetETagForUrlStub func(url string) (string, error) SetEtagForUrlStub func(url string, etag string) error // contains filtered or unexported fields }
func (*FakeEtagHelper) GetETagForUrl ¶
func (fake *FakeEtagHelper) GetETagForUrl(url string) (string, error)
func (*FakeEtagHelper) GetETagForUrlArgsForCall ¶
func (fake *FakeEtagHelper) GetETagForUrlArgsForCall(i int) string
func (*FakeEtagHelper) GetETagForUrlCallCount ¶
func (fake *FakeEtagHelper) GetETagForUrlCallCount() int
func (*FakeEtagHelper) GetETagForUrlReturns ¶
func (fake *FakeEtagHelper) GetETagForUrlReturns(result1 string, result2 error)
func (*FakeEtagHelper) GetETagForUrlReturnsOnCall ¶
func (fake *FakeEtagHelper) GetETagForUrlReturnsOnCall(i int, result1 string, result2 error)
func (*FakeEtagHelper) Invocations ¶
func (fake *FakeEtagHelper) Invocations() map[string][][]interface{}
func (*FakeEtagHelper) SetEtagForUrl ¶
func (fake *FakeEtagHelper) SetEtagForUrl(url string, etag string) error
func (*FakeEtagHelper) SetEtagForUrlArgsForCall ¶
func (fake *FakeEtagHelper) SetEtagForUrlArgsForCall(i int) (string, string)
func (*FakeEtagHelper) SetEtagForUrlCallCount ¶
func (fake *FakeEtagHelper) SetEtagForUrlCallCount() int
func (*FakeEtagHelper) SetEtagForUrlReturns ¶
func (fake *FakeEtagHelper) SetEtagForUrlReturns(result1 error)
func (*FakeEtagHelper) SetEtagForUrlReturnsOnCall ¶
func (fake *FakeEtagHelper) SetEtagForUrlReturnsOnCall(i int, result1 error)
type FakeHttpClient ¶
type FakeHttpClient struct { DoStub func(req *http.Request) (*http.Response, error) // contains filtered or unexported fields }
func (*FakeHttpClient) DoArgsForCall ¶
func (fake *FakeHttpClient) DoArgsForCall(i int) *http.Request
func (*FakeHttpClient) DoCallCount ¶
func (fake *FakeHttpClient) DoCallCount() int
func (*FakeHttpClient) DoReturns ¶
func (fake *FakeHttpClient) DoReturns(result1 *http.Response, result2 error)
func (*FakeHttpClient) DoReturnsOnCall ¶
func (fake *FakeHttpClient) DoReturnsOnCall(i int, result1 *http.Response, result2 error)
func (*FakeHttpClient) Invocations ¶
func (fake *FakeHttpClient) Invocations() map[string][][]interface{}
type FakeHttpHelper ¶
type FakeHttpHelper struct { CreateHttpRequestStub func(method string, url string) (download.HttpRequest, error) // contains filtered or unexported fields }
func (*FakeHttpHelper) CreateHttpRequest ¶
func (fake *FakeHttpHelper) CreateHttpRequest(method string, url string) (download.HttpRequest, error)
func (*FakeHttpHelper) CreateHttpRequestArgsForCall ¶
func (fake *FakeHttpHelper) CreateHttpRequestArgsForCall(i int) (string, string)
func (*FakeHttpHelper) CreateHttpRequestCallCount ¶
func (fake *FakeHttpHelper) CreateHttpRequestCallCount() int
func (*FakeHttpHelper) CreateHttpRequestReturns ¶
func (fake *FakeHttpHelper) CreateHttpRequestReturns(result1 download.HttpRequest, result2 error)
func (*FakeHttpHelper) CreateHttpRequestReturnsOnCall ¶
func (fake *FakeHttpHelper) CreateHttpRequestReturnsOnCall(i int, result1 download.HttpRequest, result2 error)
func (*FakeHttpHelper) Invocations ¶
func (fake *FakeHttpHelper) Invocations() map[string][][]interface{}
type FakeHttpRequest ¶
type FakeHttpRequest struct { SetHeaderStub func(key string, value string) SendRequestStub func() (download.HttpResponse, error) // contains filtered or unexported fields }
func (*FakeHttpRequest) Invocations ¶
func (fake *FakeHttpRequest) Invocations() map[string][][]interface{}
func (*FakeHttpRequest) SendRequest ¶
func (fake *FakeHttpRequest) SendRequest() (download.HttpResponse, error)
func (*FakeHttpRequest) SendRequestCallCount ¶
func (fake *FakeHttpRequest) SendRequestCallCount() int
func (*FakeHttpRequest) SendRequestReturns ¶
func (fake *FakeHttpRequest) SendRequestReturns(result1 download.HttpResponse, result2 error)
func (*FakeHttpRequest) SendRequestReturnsOnCall ¶
func (fake *FakeHttpRequest) SendRequestReturnsOnCall(i int, result1 download.HttpResponse, result2 error)
func (*FakeHttpRequest) SetHeader ¶
func (fake *FakeHttpRequest) SetHeader(key string, value string)
func (*FakeHttpRequest) SetHeaderArgsForCall ¶
func (fake *FakeHttpRequest) SetHeaderArgsForCall(i int) (string, string)
func (*FakeHttpRequest) SetHeaderCallCount ¶
func (fake *FakeHttpRequest) SetHeaderCallCount() int
type FakeHttpResponse ¶
type FakeHttpResponse struct { GetHeaderStub func(name string) string GetStatusCodeStub func() int GetBodyStub func() io.ReadCloser // contains filtered or unexported fields }
func (*FakeHttpResponse) GetBody ¶
func (fake *FakeHttpResponse) GetBody() io.ReadCloser
func (*FakeHttpResponse) GetBodyCallCount ¶
func (fake *FakeHttpResponse) GetBodyCallCount() int
func (*FakeHttpResponse) GetBodyReturns ¶
func (fake *FakeHttpResponse) GetBodyReturns(result1 io.ReadCloser)
func (*FakeHttpResponse) GetBodyReturnsOnCall ¶
func (fake *FakeHttpResponse) GetBodyReturnsOnCall(i int, result1 io.ReadCloser)
func (*FakeHttpResponse) GetHeader ¶
func (fake *FakeHttpResponse) GetHeader(name string) string
func (*FakeHttpResponse) GetHeaderArgsForCall ¶
func (fake *FakeHttpResponse) GetHeaderArgsForCall(i int) string
func (*FakeHttpResponse) GetHeaderCallCount ¶
func (fake *FakeHttpResponse) GetHeaderCallCount() int
func (*FakeHttpResponse) GetHeaderReturns ¶
func (fake *FakeHttpResponse) GetHeaderReturns(result1 string)
func (*FakeHttpResponse) GetHeaderReturnsOnCall ¶
func (fake *FakeHttpResponse) GetHeaderReturnsOnCall(i int, result1 string)
func (*FakeHttpResponse) GetStatusCode ¶
func (fake *FakeHttpResponse) GetStatusCode() int
func (*FakeHttpResponse) GetStatusCodeCallCount ¶
func (fake *FakeHttpResponse) GetStatusCodeCallCount() int
func (*FakeHttpResponse) GetStatusCodeReturns ¶
func (fake *FakeHttpResponse) GetStatusCodeReturns(result1 int)
func (*FakeHttpResponse) GetStatusCodeReturnsOnCall ¶
func (fake *FakeHttpResponse) GetStatusCodeReturnsOnCall(i int, result1 int)
func (*FakeHttpResponse) Invocations ¶
func (fake *FakeHttpResponse) Invocations() map[string][][]interface{}
Click to show internal directories.
Click to hide internal directories.