Documentation
¶
Index ¶
- type AsyncClient
- type AsyncClient_Download_Call
- func (_c *AsyncClient_Download_Call) Return(outputFuture catalog.DownloadFuture, err error) *AsyncClient_Download_Call
- func (_c *AsyncClient_Download_Call) Run(run func(ctx context.Context, requests ...catalog.DownloadRequest)) *AsyncClient_Download_Call
- func (_c *AsyncClient_Download_Call) RunAndReturn(...) *AsyncClient_Download_Call
- type AsyncClient_Expecter
- type AsyncClient_Upload_Call
- func (_c *AsyncClient_Upload_Call) Return(putFuture catalog.UploadFuture, err error) *AsyncClient_Upload_Call
- func (_c *AsyncClient_Upload_Call) Run(run func(ctx context.Context, requests ...catalog.UploadRequest)) *AsyncClient_Upload_Call
- func (_c *AsyncClient_Upload_Call) RunAndReturn(...) *AsyncClient_Upload_Call
- type Client
- func (_m *Client) EXPECT() *Client_Expecter
- func (_mock *Client) Get(ctx context.Context, key catalog.Key) (catalog.Entry, error)
- func (_mock *Client) GetOrExtendReservation(ctx context.Context, key catalog.Key, ownerID string, ...) (*cacheservice.Reservation, error)
- func (_mock *Client) GetReservationCache(ownerID string) catalog.ReservationCache
- func (_mock *Client) Put(ctx context.Context, key catalog.Key, reader io.OutputReader, ...) (catalog.Status, error)
- func (_mock *Client) ReleaseReservation(ctx context.Context, key catalog.Key, ownerID string) error
- func (_mock *Client) Update(ctx context.Context, key catalog.Key, reader io.OutputReader, ...) (catalog.Status, error)
- func (_mock *Client) UpdateReservationCache(ownerID string, entry catalog.ReservationCache)
- type Client_Expecter
- func (_e *Client_Expecter) Get(ctx interface{}, key interface{}) *Client_Get_Call
- func (_e *Client_Expecter) GetOrExtendReservation(ctx interface{}, key interface{}, ownerID interface{}, ...) *Client_GetOrExtendReservation_Call
- func (_e *Client_Expecter) GetReservationCache(ownerID interface{}) *Client_GetReservationCache_Call
- func (_e *Client_Expecter) Put(ctx interface{}, key interface{}, reader interface{}, metadata interface{}) *Client_Put_Call
- func (_e *Client_Expecter) ReleaseReservation(ctx interface{}, key interface{}, ownerID interface{}) *Client_ReleaseReservation_Call
- func (_e *Client_Expecter) Update(ctx interface{}, key interface{}, reader interface{}, metadata interface{}) *Client_Update_Call
- func (_e *Client_Expecter) UpdateReservationCache(ownerID interface{}, entry interface{}) *Client_UpdateReservationCache_Call
- type Client_GetOrExtendReservation_Call
- func (_c *Client_GetOrExtendReservation_Call) Return(reservation *cacheservice.Reservation, err error) *Client_GetOrExtendReservation_Call
- func (_c *Client_GetOrExtendReservation_Call) Run(run func(ctx context.Context, key catalog.Key, ownerID string, ...)) *Client_GetOrExtendReservation_Call
- func (_c *Client_GetOrExtendReservation_Call) RunAndReturn(...) *Client_GetOrExtendReservation_Call
- type Client_GetReservationCache_Call
- func (_c *Client_GetReservationCache_Call) Return(reservationCache catalog.ReservationCache) *Client_GetReservationCache_Call
- func (_c *Client_GetReservationCache_Call) Run(run func(ownerID string)) *Client_GetReservationCache_Call
- func (_c *Client_GetReservationCache_Call) RunAndReturn(run func(ownerID string) catalog.ReservationCache) *Client_GetReservationCache_Call
- type Client_Get_Call
- func (_c *Client_Get_Call) Return(entry catalog.Entry, err error) *Client_Get_Call
- func (_c *Client_Get_Call) Run(run func(ctx context.Context, key catalog.Key)) *Client_Get_Call
- func (_c *Client_Get_Call) RunAndReturn(run func(ctx context.Context, key catalog.Key) (catalog.Entry, error)) *Client_Get_Call
- type Client_Put_Call
- type Client_ReleaseReservation_Call
- func (_c *Client_ReleaseReservation_Call) Return(err error) *Client_ReleaseReservation_Call
- func (_c *Client_ReleaseReservation_Call) Run(run func(ctx context.Context, key catalog.Key, ownerID string)) *Client_ReleaseReservation_Call
- func (_c *Client_ReleaseReservation_Call) RunAndReturn(run func(ctx context.Context, key catalog.Key, ownerID string) error) *Client_ReleaseReservation_Call
- type Client_UpdateReservationCache_Call
- func (_c *Client_UpdateReservationCache_Call) Return() *Client_UpdateReservationCache_Call
- func (_c *Client_UpdateReservationCache_Call) Run(run func(ownerID string, entry catalog.ReservationCache)) *Client_UpdateReservationCache_Call
- func (_c *Client_UpdateReservationCache_Call) RunAndReturn(run func(ownerID string, entry catalog.ReservationCache)) *Client_UpdateReservationCache_Call
- type Client_Update_Call
- type DownloadFuture
- func (_m *DownloadFuture) EXPECT() *DownloadFuture_Expecter
- func (_mock *DownloadFuture) GetResponse() (catalog.DownloadResponse, error)
- func (_mock *DownloadFuture) GetResponseError() error
- func (_mock *DownloadFuture) GetResponseStatus() catalog.ResponseStatus
- func (_mock *DownloadFuture) OnReady(handler catalog.ReadyHandler)
- type DownloadFuture_Expecter
- func (_e *DownloadFuture_Expecter) GetResponse() *DownloadFuture_GetResponse_Call
- func (_e *DownloadFuture_Expecter) GetResponseError() *DownloadFuture_GetResponseError_Call
- func (_e *DownloadFuture_Expecter) GetResponseStatus() *DownloadFuture_GetResponseStatus_Call
- func (_e *DownloadFuture_Expecter) OnReady(handler interface{}) *DownloadFuture_OnReady_Call
- type DownloadFuture_GetResponseError_Call
- func (_c *DownloadFuture_GetResponseError_Call) Return(err error) *DownloadFuture_GetResponseError_Call
- func (_c *DownloadFuture_GetResponseError_Call) Run(run func()) *DownloadFuture_GetResponseError_Call
- func (_c *DownloadFuture_GetResponseError_Call) RunAndReturn(run func() error) *DownloadFuture_GetResponseError_Call
- type DownloadFuture_GetResponseStatus_Call
- func (_c *DownloadFuture_GetResponseStatus_Call) Return(responseStatus catalog.ResponseStatus) *DownloadFuture_GetResponseStatus_Call
- func (_c *DownloadFuture_GetResponseStatus_Call) Run(run func()) *DownloadFuture_GetResponseStatus_Call
- func (_c *DownloadFuture_GetResponseStatus_Call) RunAndReturn(run func() catalog.ResponseStatus) *DownloadFuture_GetResponseStatus_Call
- type DownloadFuture_GetResponse_Call
- func (_c *DownloadFuture_GetResponse_Call) Return(downloadResponse catalog.DownloadResponse, err error) *DownloadFuture_GetResponse_Call
- func (_c *DownloadFuture_GetResponse_Call) Run(run func()) *DownloadFuture_GetResponse_Call
- func (_c *DownloadFuture_GetResponse_Call) RunAndReturn(run func() (catalog.DownloadResponse, error)) *DownloadFuture_GetResponse_Call
- type DownloadFuture_OnReady_Call
- func (_c *DownloadFuture_OnReady_Call) Return() *DownloadFuture_OnReady_Call
- func (_c *DownloadFuture_OnReady_Call) Run(run func(handler catalog.ReadyHandler)) *DownloadFuture_OnReady_Call
- func (_c *DownloadFuture_OnReady_Call) RunAndReturn(run func(handler catalog.ReadyHandler)) *DownloadFuture_OnReady_Call
- type DownloadResponse
- type DownloadResponse_Expecter
- type DownloadResponse_GetCachedCount_Call
- func (_c *DownloadResponse_GetCachedCount_Call) Return(n int) *DownloadResponse_GetCachedCount_Call
- func (_c *DownloadResponse_GetCachedCount_Call) Run(run func()) *DownloadResponse_GetCachedCount_Call
- func (_c *DownloadResponse_GetCachedCount_Call) RunAndReturn(run func() int) *DownloadResponse_GetCachedCount_Call
- type DownloadResponse_GetCachedResults_Call
- func (_c *DownloadResponse_GetCachedResults_Call) Return(bitSet *bitarray.BitSet) *DownloadResponse_GetCachedResults_Call
- func (_c *DownloadResponse_GetCachedResults_Call) Run(run func()) *DownloadResponse_GetCachedResults_Call
- func (_c *DownloadResponse_GetCachedResults_Call) RunAndReturn(run func() *bitarray.BitSet) *DownloadResponse_GetCachedResults_Call
- type DownloadResponse_GetResultsSize_Call
- func (_c *DownloadResponse_GetResultsSize_Call) Return(n int) *DownloadResponse_GetResultsSize_Call
- func (_c *DownloadResponse_GetResultsSize_Call) Run(run func()) *DownloadResponse_GetResultsSize_Call
- func (_c *DownloadResponse_GetResultsSize_Call) RunAndReturn(run func() int) *DownloadResponse_GetResultsSize_Call
- type Future
- type Future_Expecter
- type Future_GetResponseError_Call
- type Future_GetResponseStatus_Call
- func (_c *Future_GetResponseStatus_Call) Return(responseStatus catalog.ResponseStatus) *Future_GetResponseStatus_Call
- func (_c *Future_GetResponseStatus_Call) Run(run func()) *Future_GetResponseStatus_Call
- func (_c *Future_GetResponseStatus_Call) RunAndReturn(run func() catalog.ResponseStatus) *Future_GetResponseStatus_Call
- type Future_OnReady_Call
- type UploadFuture
- type UploadFuture_Expecter
- type UploadFuture_GetResponseError_Call
- func (_c *UploadFuture_GetResponseError_Call) Return(err error) *UploadFuture_GetResponseError_Call
- func (_c *UploadFuture_GetResponseError_Call) Run(run func()) *UploadFuture_GetResponseError_Call
- func (_c *UploadFuture_GetResponseError_Call) RunAndReturn(run func() error) *UploadFuture_GetResponseError_Call
- type UploadFuture_GetResponseStatus_Call
- func (_c *UploadFuture_GetResponseStatus_Call) Return(responseStatus catalog.ResponseStatus) *UploadFuture_GetResponseStatus_Call
- func (_c *UploadFuture_GetResponseStatus_Call) Run(run func()) *UploadFuture_GetResponseStatus_Call
- func (_c *UploadFuture_GetResponseStatus_Call) RunAndReturn(run func() catalog.ResponseStatus) *UploadFuture_GetResponseStatus_Call
- type UploadFuture_OnReady_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncClient ¶
AsyncClient is an autogenerated mock type for the AsyncClient type
func NewAsyncClient ¶ added in v2.0.1
func NewAsyncClient(t interface {
mock.TestingT
Cleanup(func())
}) *AsyncClient
NewAsyncClient creates a new instance of AsyncClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AsyncClient) Download ¶
func (_mock *AsyncClient) Download(ctx context.Context, requests ...catalog.DownloadRequest) (catalog.DownloadFuture, error)
Download provides a mock function for the type AsyncClient
func (*AsyncClient) EXPECT ¶ added in v2.0.1
func (_m *AsyncClient) EXPECT() *AsyncClient_Expecter
func (*AsyncClient) Upload ¶
func (_mock *AsyncClient) Upload(ctx context.Context, requests ...catalog.UploadRequest) (catalog.UploadFuture, error)
Upload provides a mock function for the type AsyncClient
type AsyncClient_Download_Call ¶ added in v2.0.1
AsyncClient_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
func (*AsyncClient_Download_Call) Return ¶ added in v2.0.1
func (_c *AsyncClient_Download_Call) Return(outputFuture catalog.DownloadFuture, err error) *AsyncClient_Download_Call
func (*AsyncClient_Download_Call) Run ¶ added in v2.0.1
func (_c *AsyncClient_Download_Call) Run(run func(ctx context.Context, requests ...catalog.DownloadRequest)) *AsyncClient_Download_Call
func (*AsyncClient_Download_Call) RunAndReturn ¶ added in v2.0.1
func (_c *AsyncClient_Download_Call) RunAndReturn(run func(ctx context.Context, requests ...catalog.DownloadRequest) (catalog.DownloadFuture, error)) *AsyncClient_Download_Call
type AsyncClient_Expecter ¶ added in v2.0.1
type AsyncClient_Expecter struct {
// contains filtered or unexported fields
}
func (*AsyncClient_Expecter) Download ¶ added in v2.0.1
func (_e *AsyncClient_Expecter) Download(ctx interface{}, requests ...interface{}) *AsyncClient_Download_Call
Download is a helper method to define mock.On call
- ctx context.Context
- requests ...catalog.DownloadRequest
func (*AsyncClient_Expecter) Upload ¶ added in v2.0.1
func (_e *AsyncClient_Expecter) Upload(ctx interface{}, requests ...interface{}) *AsyncClient_Upload_Call
Upload is a helper method to define mock.On call
- ctx context.Context
- requests ...catalog.UploadRequest
type AsyncClient_Upload_Call ¶ added in v2.0.1
AsyncClient_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'
func (*AsyncClient_Upload_Call) Return ¶ added in v2.0.1
func (_c *AsyncClient_Upload_Call) Return(putFuture catalog.UploadFuture, err error) *AsyncClient_Upload_Call
func (*AsyncClient_Upload_Call) Run ¶ added in v2.0.1
func (_c *AsyncClient_Upload_Call) Run(run func(ctx context.Context, requests ...catalog.UploadRequest)) *AsyncClient_Upload_Call
func (*AsyncClient_Upload_Call) RunAndReturn ¶ added in v2.0.1
func (_c *AsyncClient_Upload_Call) RunAndReturn(run func(ctx context.Context, requests ...catalog.UploadRequest) (catalog.UploadFuture, error)) *AsyncClient_Upload_Call
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v2.0.1
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Client) EXPECT ¶ added in v2.0.1
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetOrExtendReservation ¶
func (_mock *Client) GetOrExtendReservation(ctx context.Context, key catalog.Key, ownerID string, heartbeatInterval time.Duration) (*cacheservice.Reservation, error)
GetOrExtendReservation provides a mock function for the type Client
func (*Client) GetReservationCache ¶
func (_mock *Client) GetReservationCache(ownerID string) catalog.ReservationCache
GetReservationCache provides a mock function for the type Client
func (*Client) Put ¶
func (_mock *Client) Put(ctx context.Context, key catalog.Key, reader io.OutputReader, metadata catalog.Metadata) (catalog.Status, error)
Put provides a mock function for the type Client
func (*Client) ReleaseReservation ¶
ReleaseReservation provides a mock function for the type Client
func (*Client) Update ¶
func (_mock *Client) Update(ctx context.Context, key catalog.Key, reader io.OutputReader, metadata catalog.Metadata) (catalog.Status, error)
Update provides a mock function for the type Client
func (*Client) UpdateReservationCache ¶
func (_mock *Client) UpdateReservationCache(ownerID string, entry catalog.ReservationCache)
UpdateReservationCache provides a mock function for the type Client
type Client_Expecter ¶ added in v2.0.1
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Get ¶ added in v2.0.1
func (_e *Client_Expecter) Get(ctx interface{}, key interface{}) *Client_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key catalog.Key
func (*Client_Expecter) GetOrExtendReservation ¶ added in v2.0.1
func (_e *Client_Expecter) GetOrExtendReservation(ctx interface{}, key interface{}, ownerID interface{}, heartbeatInterval interface{}) *Client_GetOrExtendReservation_Call
GetOrExtendReservation is a helper method to define mock.On call
- ctx context.Context
- key catalog.Key
- ownerID string
- heartbeatInterval time.Duration
func (*Client_Expecter) GetReservationCache ¶ added in v2.0.1
func (_e *Client_Expecter) GetReservationCache(ownerID interface{}) *Client_GetReservationCache_Call
GetReservationCache is a helper method to define mock.On call
- ownerID string
func (*Client_Expecter) Put ¶ added in v2.0.1
func (_e *Client_Expecter) Put(ctx interface{}, key interface{}, reader interface{}, metadata interface{}) *Client_Put_Call
Put is a helper method to define mock.On call
- ctx context.Context
- key catalog.Key
- reader io.OutputReader
- metadata catalog.Metadata
func (*Client_Expecter) ReleaseReservation ¶ added in v2.0.1
func (_e *Client_Expecter) ReleaseReservation(ctx interface{}, key interface{}, ownerID interface{}) *Client_ReleaseReservation_Call
ReleaseReservation is a helper method to define mock.On call
- ctx context.Context
- key catalog.Key
- ownerID string
func (*Client_Expecter) Update ¶ added in v2.0.1
func (_e *Client_Expecter) Update(ctx interface{}, key interface{}, reader interface{}, metadata interface{}) *Client_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- key catalog.Key
- reader io.OutputReader
- metadata catalog.Metadata
func (*Client_Expecter) UpdateReservationCache ¶ added in v2.0.1
func (_e *Client_Expecter) UpdateReservationCache(ownerID interface{}, entry interface{}) *Client_UpdateReservationCache_Call
UpdateReservationCache is a helper method to define mock.On call
- ownerID string
- entry catalog.ReservationCache
type Client_GetOrExtendReservation_Call ¶ added in v2.0.1
Client_GetOrExtendReservation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrExtendReservation'
func (*Client_GetOrExtendReservation_Call) Return ¶ added in v2.0.1
func (_c *Client_GetOrExtendReservation_Call) Return(reservation *cacheservice.Reservation, err error) *Client_GetOrExtendReservation_Call
func (*Client_GetOrExtendReservation_Call) Run ¶ added in v2.0.1
func (_c *Client_GetOrExtendReservation_Call) Run(run func(ctx context.Context, key catalog.Key, ownerID string, heartbeatInterval time.Duration)) *Client_GetOrExtendReservation_Call
func (*Client_GetOrExtendReservation_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Client_GetOrExtendReservation_Call) RunAndReturn(run func(ctx context.Context, key catalog.Key, ownerID string, heartbeatInterval time.Duration) (*cacheservice.Reservation, error)) *Client_GetOrExtendReservation_Call
type Client_GetReservationCache_Call ¶ added in v2.0.1
Client_GetReservationCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReservationCache'
func (*Client_GetReservationCache_Call) Return ¶ added in v2.0.1
func (_c *Client_GetReservationCache_Call) Return(reservationCache catalog.ReservationCache) *Client_GetReservationCache_Call
func (*Client_GetReservationCache_Call) Run ¶ added in v2.0.1
func (_c *Client_GetReservationCache_Call) Run(run func(ownerID string)) *Client_GetReservationCache_Call
func (*Client_GetReservationCache_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Client_GetReservationCache_Call) RunAndReturn(run func(ownerID string) catalog.ReservationCache) *Client_GetReservationCache_Call
type Client_Get_Call ¶ added in v2.0.1
Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Client_Get_Call) Return ¶ added in v2.0.1
func (_c *Client_Get_Call) Return(entry catalog.Entry, err error) *Client_Get_Call
func (*Client_Get_Call) Run ¶ added in v2.0.1
func (_c *Client_Get_Call) Run(run func(ctx context.Context, key catalog.Key)) *Client_Get_Call
func (*Client_Get_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Client_Get_Call) RunAndReturn(run func(ctx context.Context, key catalog.Key) (catalog.Entry, error)) *Client_Get_Call
type Client_Put_Call ¶ added in v2.0.1
Client_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*Client_Put_Call) Return ¶ added in v2.0.1
func (_c *Client_Put_Call) Return(status catalog.Status, err error) *Client_Put_Call
func (*Client_Put_Call) Run ¶ added in v2.0.1
func (_c *Client_Put_Call) Run(run func(ctx context.Context, key catalog.Key, reader io.OutputReader, metadata catalog.Metadata)) *Client_Put_Call
func (*Client_Put_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Client_Put_Call) RunAndReturn(run func(ctx context.Context, key catalog.Key, reader io.OutputReader, metadata catalog.Metadata) (catalog.Status, error)) *Client_Put_Call
type Client_ReleaseReservation_Call ¶ added in v2.0.1
Client_ReleaseReservation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleaseReservation'
func (*Client_ReleaseReservation_Call) Return ¶ added in v2.0.1
func (_c *Client_ReleaseReservation_Call) Return(err error) *Client_ReleaseReservation_Call
func (*Client_ReleaseReservation_Call) Run ¶ added in v2.0.1
func (_c *Client_ReleaseReservation_Call) Run(run func(ctx context.Context, key catalog.Key, ownerID string)) *Client_ReleaseReservation_Call
func (*Client_ReleaseReservation_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Client_ReleaseReservation_Call) RunAndReturn(run func(ctx context.Context, key catalog.Key, ownerID string) error) *Client_ReleaseReservation_Call
type Client_UpdateReservationCache_Call ¶ added in v2.0.1
Client_UpdateReservationCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateReservationCache'
func (*Client_UpdateReservationCache_Call) Return ¶ added in v2.0.1
func (_c *Client_UpdateReservationCache_Call) Return() *Client_UpdateReservationCache_Call
func (*Client_UpdateReservationCache_Call) Run ¶ added in v2.0.1
func (_c *Client_UpdateReservationCache_Call) Run(run func(ownerID string, entry catalog.ReservationCache)) *Client_UpdateReservationCache_Call
func (*Client_UpdateReservationCache_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Client_UpdateReservationCache_Call) RunAndReturn(run func(ownerID string, entry catalog.ReservationCache)) *Client_UpdateReservationCache_Call
type Client_Update_Call ¶ added in v2.0.1
Client_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Client_Update_Call) Return ¶ added in v2.0.1
func (_c *Client_Update_Call) Return(status catalog.Status, err error) *Client_Update_Call
func (*Client_Update_Call) Run ¶ added in v2.0.1
func (_c *Client_Update_Call) Run(run func(ctx context.Context, key catalog.Key, reader io.OutputReader, metadata catalog.Metadata)) *Client_Update_Call
func (*Client_Update_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Client_Update_Call) RunAndReturn(run func(ctx context.Context, key catalog.Key, reader io.OutputReader, metadata catalog.Metadata) (catalog.Status, error)) *Client_Update_Call
type DownloadFuture ¶
DownloadFuture is an autogenerated mock type for the DownloadFuture type
func NewDownloadFuture ¶ added in v2.0.1
func NewDownloadFuture(t interface {
mock.TestingT
Cleanup(func())
}) *DownloadFuture
NewDownloadFuture creates a new instance of DownloadFuture. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DownloadFuture) EXPECT ¶ added in v2.0.1
func (_m *DownloadFuture) EXPECT() *DownloadFuture_Expecter
func (*DownloadFuture) GetResponse ¶
func (_mock *DownloadFuture) GetResponse() (catalog.DownloadResponse, error)
GetResponse provides a mock function for the type DownloadFuture
func (*DownloadFuture) GetResponseError ¶
func (_mock *DownloadFuture) GetResponseError() error
GetResponseError provides a mock function for the type DownloadFuture
func (*DownloadFuture) GetResponseStatus ¶
func (_mock *DownloadFuture) GetResponseStatus() catalog.ResponseStatus
GetResponseStatus provides a mock function for the type DownloadFuture
func (*DownloadFuture) OnReady ¶
func (_mock *DownloadFuture) OnReady(handler catalog.ReadyHandler)
OnReady provides a mock function for the type DownloadFuture
type DownloadFuture_Expecter ¶ added in v2.0.1
type DownloadFuture_Expecter struct {
// contains filtered or unexported fields
}
func (*DownloadFuture_Expecter) GetResponse ¶ added in v2.0.1
func (_e *DownloadFuture_Expecter) GetResponse() *DownloadFuture_GetResponse_Call
GetResponse is a helper method to define mock.On call
func (*DownloadFuture_Expecter) GetResponseError ¶ added in v2.0.1
func (_e *DownloadFuture_Expecter) GetResponseError() *DownloadFuture_GetResponseError_Call
GetResponseError is a helper method to define mock.On call
func (*DownloadFuture_Expecter) GetResponseStatus ¶ added in v2.0.1
func (_e *DownloadFuture_Expecter) GetResponseStatus() *DownloadFuture_GetResponseStatus_Call
GetResponseStatus is a helper method to define mock.On call
func (*DownloadFuture_Expecter) OnReady ¶ added in v2.0.1
func (_e *DownloadFuture_Expecter) OnReady(handler interface{}) *DownloadFuture_OnReady_Call
OnReady is a helper method to define mock.On call
- handler catalog.ReadyHandler
type DownloadFuture_GetResponseError_Call ¶ added in v2.0.1
DownloadFuture_GetResponseError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponseError'
func (*DownloadFuture_GetResponseError_Call) Return ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponseError_Call) Return(err error) *DownloadFuture_GetResponseError_Call
func (*DownloadFuture_GetResponseError_Call) Run ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponseError_Call) Run(run func()) *DownloadFuture_GetResponseError_Call
func (*DownloadFuture_GetResponseError_Call) RunAndReturn ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponseError_Call) RunAndReturn(run func() error) *DownloadFuture_GetResponseError_Call
type DownloadFuture_GetResponseStatus_Call ¶ added in v2.0.1
DownloadFuture_GetResponseStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponseStatus'
func (*DownloadFuture_GetResponseStatus_Call) Return ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponseStatus_Call) Return(responseStatus catalog.ResponseStatus) *DownloadFuture_GetResponseStatus_Call
func (*DownloadFuture_GetResponseStatus_Call) Run ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponseStatus_Call) Run(run func()) *DownloadFuture_GetResponseStatus_Call
func (*DownloadFuture_GetResponseStatus_Call) RunAndReturn ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponseStatus_Call) RunAndReturn(run func() catalog.ResponseStatus) *DownloadFuture_GetResponseStatus_Call
type DownloadFuture_GetResponse_Call ¶ added in v2.0.1
DownloadFuture_GetResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponse'
func (*DownloadFuture_GetResponse_Call) Return ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponse_Call) Return(downloadResponse catalog.DownloadResponse, err error) *DownloadFuture_GetResponse_Call
func (*DownloadFuture_GetResponse_Call) Run ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponse_Call) Run(run func()) *DownloadFuture_GetResponse_Call
func (*DownloadFuture_GetResponse_Call) RunAndReturn ¶ added in v2.0.1
func (_c *DownloadFuture_GetResponse_Call) RunAndReturn(run func() (catalog.DownloadResponse, error)) *DownloadFuture_GetResponse_Call
type DownloadFuture_OnReady_Call ¶ added in v2.0.1
DownloadFuture_OnReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReady'
func (*DownloadFuture_OnReady_Call) Return ¶ added in v2.0.1
func (_c *DownloadFuture_OnReady_Call) Return() *DownloadFuture_OnReady_Call
func (*DownloadFuture_OnReady_Call) Run ¶ added in v2.0.1
func (_c *DownloadFuture_OnReady_Call) Run(run func(handler catalog.ReadyHandler)) *DownloadFuture_OnReady_Call
func (*DownloadFuture_OnReady_Call) RunAndReturn ¶ added in v2.0.1
func (_c *DownloadFuture_OnReady_Call) RunAndReturn(run func(handler catalog.ReadyHandler)) *DownloadFuture_OnReady_Call
type DownloadResponse ¶
DownloadResponse is an autogenerated mock type for the DownloadResponse type
func NewDownloadResponse ¶ added in v2.0.1
func NewDownloadResponse(t interface {
mock.TestingT
Cleanup(func())
}) *DownloadResponse
NewDownloadResponse creates a new instance of DownloadResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DownloadResponse) EXPECT ¶ added in v2.0.1
func (_m *DownloadResponse) EXPECT() *DownloadResponse_Expecter
func (*DownloadResponse) GetCachedCount ¶
func (_mock *DownloadResponse) GetCachedCount() int
GetCachedCount provides a mock function for the type DownloadResponse
func (*DownloadResponse) GetCachedResults ¶
func (_mock *DownloadResponse) GetCachedResults() *bitarray.BitSet
GetCachedResults provides a mock function for the type DownloadResponse
func (*DownloadResponse) GetResultsSize ¶
func (_mock *DownloadResponse) GetResultsSize() int
GetResultsSize provides a mock function for the type DownloadResponse
type DownloadResponse_Expecter ¶ added in v2.0.1
type DownloadResponse_Expecter struct {
// contains filtered or unexported fields
}
func (*DownloadResponse_Expecter) GetCachedCount ¶ added in v2.0.1
func (_e *DownloadResponse_Expecter) GetCachedCount() *DownloadResponse_GetCachedCount_Call
GetCachedCount is a helper method to define mock.On call
func (*DownloadResponse_Expecter) GetCachedResults ¶ added in v2.0.1
func (_e *DownloadResponse_Expecter) GetCachedResults() *DownloadResponse_GetCachedResults_Call
GetCachedResults is a helper method to define mock.On call
func (*DownloadResponse_Expecter) GetResultsSize ¶ added in v2.0.1
func (_e *DownloadResponse_Expecter) GetResultsSize() *DownloadResponse_GetResultsSize_Call
GetResultsSize is a helper method to define mock.On call
type DownloadResponse_GetCachedCount_Call ¶ added in v2.0.1
DownloadResponse_GetCachedCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedCount'
func (*DownloadResponse_GetCachedCount_Call) Return ¶ added in v2.0.1
func (_c *DownloadResponse_GetCachedCount_Call) Return(n int) *DownloadResponse_GetCachedCount_Call
func (*DownloadResponse_GetCachedCount_Call) Run ¶ added in v2.0.1
func (_c *DownloadResponse_GetCachedCount_Call) Run(run func()) *DownloadResponse_GetCachedCount_Call
func (*DownloadResponse_GetCachedCount_Call) RunAndReturn ¶ added in v2.0.1
func (_c *DownloadResponse_GetCachedCount_Call) RunAndReturn(run func() int) *DownloadResponse_GetCachedCount_Call
type DownloadResponse_GetCachedResults_Call ¶ added in v2.0.1
DownloadResponse_GetCachedResults_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedResults'
func (*DownloadResponse_GetCachedResults_Call) Return ¶ added in v2.0.1
func (_c *DownloadResponse_GetCachedResults_Call) Return(bitSet *bitarray.BitSet) *DownloadResponse_GetCachedResults_Call
func (*DownloadResponse_GetCachedResults_Call) Run ¶ added in v2.0.1
func (_c *DownloadResponse_GetCachedResults_Call) Run(run func()) *DownloadResponse_GetCachedResults_Call
func (*DownloadResponse_GetCachedResults_Call) RunAndReturn ¶ added in v2.0.1
func (_c *DownloadResponse_GetCachedResults_Call) RunAndReturn(run func() *bitarray.BitSet) *DownloadResponse_GetCachedResults_Call
type DownloadResponse_GetResultsSize_Call ¶ added in v2.0.1
DownloadResponse_GetResultsSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResultsSize'
func (*DownloadResponse_GetResultsSize_Call) Return ¶ added in v2.0.1
func (_c *DownloadResponse_GetResultsSize_Call) Return(n int) *DownloadResponse_GetResultsSize_Call
func (*DownloadResponse_GetResultsSize_Call) Run ¶ added in v2.0.1
func (_c *DownloadResponse_GetResultsSize_Call) Run(run func()) *DownloadResponse_GetResultsSize_Call
func (*DownloadResponse_GetResultsSize_Call) RunAndReturn ¶ added in v2.0.1
func (_c *DownloadResponse_GetResultsSize_Call) RunAndReturn(run func() int) *DownloadResponse_GetResultsSize_Call
type Future ¶
Future is an autogenerated mock type for the Future type
func NewFuture ¶ added in v2.0.1
NewFuture creates a new instance of Future. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Future) EXPECT ¶ added in v2.0.1
func (_m *Future) EXPECT() *Future_Expecter
func (*Future) GetResponseError ¶
GetResponseError provides a mock function for the type Future
func (*Future) GetResponseStatus ¶
func (_mock *Future) GetResponseStatus() catalog.ResponseStatus
GetResponseStatus provides a mock function for the type Future
func (*Future) OnReady ¶
func (_mock *Future) OnReady(handler catalog.ReadyHandler)
OnReady provides a mock function for the type Future
type Future_Expecter ¶ added in v2.0.1
type Future_Expecter struct {
// contains filtered or unexported fields
}
func (*Future_Expecter) GetResponseError ¶ added in v2.0.1
func (_e *Future_Expecter) GetResponseError() *Future_GetResponseError_Call
GetResponseError is a helper method to define mock.On call
func (*Future_Expecter) GetResponseStatus ¶ added in v2.0.1
func (_e *Future_Expecter) GetResponseStatus() *Future_GetResponseStatus_Call
GetResponseStatus is a helper method to define mock.On call
func (*Future_Expecter) OnReady ¶ added in v2.0.1
func (_e *Future_Expecter) OnReady(handler interface{}) *Future_OnReady_Call
OnReady is a helper method to define mock.On call
- handler catalog.ReadyHandler
type Future_GetResponseError_Call ¶ added in v2.0.1
Future_GetResponseError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponseError'
func (*Future_GetResponseError_Call) Return ¶ added in v2.0.1
func (_c *Future_GetResponseError_Call) Return(err error) *Future_GetResponseError_Call
func (*Future_GetResponseError_Call) Run ¶ added in v2.0.1
func (_c *Future_GetResponseError_Call) Run(run func()) *Future_GetResponseError_Call
func (*Future_GetResponseError_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Future_GetResponseError_Call) RunAndReturn(run func() error) *Future_GetResponseError_Call
type Future_GetResponseStatus_Call ¶ added in v2.0.1
Future_GetResponseStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponseStatus'
func (*Future_GetResponseStatus_Call) Return ¶ added in v2.0.1
func (_c *Future_GetResponseStatus_Call) Return(responseStatus catalog.ResponseStatus) *Future_GetResponseStatus_Call
func (*Future_GetResponseStatus_Call) Run ¶ added in v2.0.1
func (_c *Future_GetResponseStatus_Call) Run(run func()) *Future_GetResponseStatus_Call
func (*Future_GetResponseStatus_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Future_GetResponseStatus_Call) RunAndReturn(run func() catalog.ResponseStatus) *Future_GetResponseStatus_Call
type Future_OnReady_Call ¶ added in v2.0.1
Future_OnReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReady'
func (*Future_OnReady_Call) Return ¶ added in v2.0.1
func (_c *Future_OnReady_Call) Return() *Future_OnReady_Call
func (*Future_OnReady_Call) Run ¶ added in v2.0.1
func (_c *Future_OnReady_Call) Run(run func(handler catalog.ReadyHandler)) *Future_OnReady_Call
func (*Future_OnReady_Call) RunAndReturn ¶ added in v2.0.1
func (_c *Future_OnReady_Call) RunAndReturn(run func(handler catalog.ReadyHandler)) *Future_OnReady_Call
type UploadFuture ¶
UploadFuture is an autogenerated mock type for the UploadFuture type
func NewUploadFuture ¶ added in v2.0.1
func NewUploadFuture(t interface {
mock.TestingT
Cleanup(func())
}) *UploadFuture
NewUploadFuture creates a new instance of UploadFuture. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UploadFuture) EXPECT ¶ added in v2.0.1
func (_m *UploadFuture) EXPECT() *UploadFuture_Expecter
func (*UploadFuture) GetResponseError ¶
func (_mock *UploadFuture) GetResponseError() error
GetResponseError provides a mock function for the type UploadFuture
func (*UploadFuture) GetResponseStatus ¶
func (_mock *UploadFuture) GetResponseStatus() catalog.ResponseStatus
GetResponseStatus provides a mock function for the type UploadFuture
func (*UploadFuture) OnReady ¶
func (_mock *UploadFuture) OnReady(handler catalog.ReadyHandler)
OnReady provides a mock function for the type UploadFuture
type UploadFuture_Expecter ¶ added in v2.0.1
type UploadFuture_Expecter struct {
// contains filtered or unexported fields
}
func (*UploadFuture_Expecter) GetResponseError ¶ added in v2.0.1
func (_e *UploadFuture_Expecter) GetResponseError() *UploadFuture_GetResponseError_Call
GetResponseError is a helper method to define mock.On call
func (*UploadFuture_Expecter) GetResponseStatus ¶ added in v2.0.1
func (_e *UploadFuture_Expecter) GetResponseStatus() *UploadFuture_GetResponseStatus_Call
GetResponseStatus is a helper method to define mock.On call
func (*UploadFuture_Expecter) OnReady ¶ added in v2.0.1
func (_e *UploadFuture_Expecter) OnReady(handler interface{}) *UploadFuture_OnReady_Call
OnReady is a helper method to define mock.On call
- handler catalog.ReadyHandler
type UploadFuture_GetResponseError_Call ¶ added in v2.0.1
UploadFuture_GetResponseError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponseError'
func (*UploadFuture_GetResponseError_Call) Return ¶ added in v2.0.1
func (_c *UploadFuture_GetResponseError_Call) Return(err error) *UploadFuture_GetResponseError_Call
func (*UploadFuture_GetResponseError_Call) Run ¶ added in v2.0.1
func (_c *UploadFuture_GetResponseError_Call) Run(run func()) *UploadFuture_GetResponseError_Call
func (*UploadFuture_GetResponseError_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UploadFuture_GetResponseError_Call) RunAndReturn(run func() error) *UploadFuture_GetResponseError_Call
type UploadFuture_GetResponseStatus_Call ¶ added in v2.0.1
UploadFuture_GetResponseStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponseStatus'
func (*UploadFuture_GetResponseStatus_Call) Return ¶ added in v2.0.1
func (_c *UploadFuture_GetResponseStatus_Call) Return(responseStatus catalog.ResponseStatus) *UploadFuture_GetResponseStatus_Call
func (*UploadFuture_GetResponseStatus_Call) Run ¶ added in v2.0.1
func (_c *UploadFuture_GetResponseStatus_Call) Run(run func()) *UploadFuture_GetResponseStatus_Call
func (*UploadFuture_GetResponseStatus_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UploadFuture_GetResponseStatus_Call) RunAndReturn(run func() catalog.ResponseStatus) *UploadFuture_GetResponseStatus_Call
type UploadFuture_OnReady_Call ¶ added in v2.0.1
UploadFuture_OnReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReady'
func (*UploadFuture_OnReady_Call) Return ¶ added in v2.0.1
func (_c *UploadFuture_OnReady_Call) Return() *UploadFuture_OnReady_Call
func (*UploadFuture_OnReady_Call) Run ¶ added in v2.0.1
func (_c *UploadFuture_OnReady_Call) Run(run func(handler catalog.ReadyHandler)) *UploadFuture_OnReady_Call
func (*UploadFuture_OnReady_Call) RunAndReturn ¶ added in v2.0.1
func (_c *UploadFuture_OnReady_Call) RunAndReturn(run func(handler catalog.ReadyHandler)) *UploadFuture_OnReady_Call