Documentation
¶
Index ¶
- type CacheServiceClient
- func (_m *CacheServiceClient) Delete(ctx context.Context, in *cacheservice.DeleteCacheRequest, ...) (*cacheservice.DeleteCacheResponse, error)
- func (_m *CacheServiceClient) EXPECT() *CacheServiceClient_Expecter
- func (_m *CacheServiceClient) Get(ctx context.Context, in *cacheservice.GetCacheRequest, opts ...grpc.CallOption) (*cacheservice.GetCacheResponse, error)
- func (_m *CacheServiceClient) GetOrExtendReservation(ctx context.Context, in *cacheservice.GetOrExtendReservationRequest, ...) (*cacheservice.GetOrExtendReservationResponse, error)
- func (_m *CacheServiceClient) Put(ctx context.Context, in *cacheservice.PutCacheRequest, opts ...grpc.CallOption) (*cacheservice.PutCacheResponse, error)
- func (_m *CacheServiceClient) ReleaseReservation(ctx context.Context, in *cacheservice.ReleaseReservationRequest, ...) (*cacheservice.ReleaseReservationResponse, error)
- type CacheServiceClient_Delete_Call
- func (_c *CacheServiceClient_Delete_Call) Return(_a0 *cacheservice.DeleteCacheResponse, _a1 error) *CacheServiceClient_Delete_Call
- func (_c *CacheServiceClient_Delete_Call) Run(run func(ctx context.Context, in *cacheservice.DeleteCacheRequest, ...)) *CacheServiceClient_Delete_Call
- func (_c *CacheServiceClient_Delete_Call) RunAndReturn(...) *CacheServiceClient_Delete_Call
- type CacheServiceClient_Expecter
- func (_e *CacheServiceClient_Expecter) Delete(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Delete_Call
- func (_e *CacheServiceClient_Expecter) Get(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Get_Call
- func (_e *CacheServiceClient_Expecter) GetOrExtendReservation(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_GetOrExtendReservation_Call
- func (_e *CacheServiceClient_Expecter) Put(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Put_Call
- func (_e *CacheServiceClient_Expecter) ReleaseReservation(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_ReleaseReservation_Call
- type CacheServiceClient_GetOrExtendReservation_Call
- func (_c *CacheServiceClient_GetOrExtendReservation_Call) Return(_a0 *cacheservice.GetOrExtendReservationResponse, _a1 error) *CacheServiceClient_GetOrExtendReservation_Call
- func (_c *CacheServiceClient_GetOrExtendReservation_Call) Run(...) *CacheServiceClient_GetOrExtendReservation_Call
- func (_c *CacheServiceClient_GetOrExtendReservation_Call) RunAndReturn(...) *CacheServiceClient_GetOrExtendReservation_Call
- type CacheServiceClient_Get_Call
- type CacheServiceClient_Put_Call
- type CacheServiceClient_ReleaseReservation_Call
- func (_c *CacheServiceClient_ReleaseReservation_Call) Return(_a0 *cacheservice.ReleaseReservationResponse, _a1 error) *CacheServiceClient_ReleaseReservation_Call
- func (_c *CacheServiceClient_ReleaseReservation_Call) Run(run func(ctx context.Context, in *cacheservice.ReleaseReservationRequest, ...)) *CacheServiceClient_ReleaseReservation_Call
- func (_c *CacheServiceClient_ReleaseReservation_Call) RunAndReturn(...) *CacheServiceClient_ReleaseReservation_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheServiceClient ¶
CacheServiceClient is an autogenerated mock type for the CacheServiceClient type
func NewCacheServiceClient ¶ added in v1.15.2
func NewCacheServiceClient(t interface { mock.TestingT Cleanup(func()) }) *CacheServiceClient
NewCacheServiceClient creates a new instance of CacheServiceClient. 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 (*CacheServiceClient) Delete ¶
func (_m *CacheServiceClient) Delete(ctx context.Context, in *cacheservice.DeleteCacheRequest, opts ...grpc.CallOption) (*cacheservice.DeleteCacheResponse, error)
Delete provides a mock function with given fields: ctx, in, opts
func (*CacheServiceClient) EXPECT ¶ added in v1.15.2
func (_m *CacheServiceClient) EXPECT() *CacheServiceClient_Expecter
func (*CacheServiceClient) Get ¶
func (_m *CacheServiceClient) Get(ctx context.Context, in *cacheservice.GetCacheRequest, opts ...grpc.CallOption) (*cacheservice.GetCacheResponse, error)
Get provides a mock function with given fields: ctx, in, opts
func (*CacheServiceClient) GetOrExtendReservation ¶
func (_m *CacheServiceClient) GetOrExtendReservation(ctx context.Context, in *cacheservice.GetOrExtendReservationRequest, opts ...grpc.CallOption) (*cacheservice.GetOrExtendReservationResponse, error)
GetOrExtendReservation provides a mock function with given fields: ctx, in, opts
func (*CacheServiceClient) Put ¶
func (_m *CacheServiceClient) Put(ctx context.Context, in *cacheservice.PutCacheRequest, opts ...grpc.CallOption) (*cacheservice.PutCacheResponse, error)
Put provides a mock function with given fields: ctx, in, opts
func (*CacheServiceClient) ReleaseReservation ¶
func (_m *CacheServiceClient) ReleaseReservation(ctx context.Context, in *cacheservice.ReleaseReservationRequest, opts ...grpc.CallOption) (*cacheservice.ReleaseReservationResponse, error)
ReleaseReservation provides a mock function with given fields: ctx, in, opts
type CacheServiceClient_Delete_Call ¶ added in v1.15.2
CacheServiceClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*CacheServiceClient_Delete_Call) Return ¶ added in v1.15.2
func (_c *CacheServiceClient_Delete_Call) Return(_a0 *cacheservice.DeleteCacheResponse, _a1 error) *CacheServiceClient_Delete_Call
func (*CacheServiceClient_Delete_Call) Run ¶ added in v1.15.2
func (_c *CacheServiceClient_Delete_Call) Run(run func(ctx context.Context, in *cacheservice.DeleteCacheRequest, opts ...grpc.CallOption)) *CacheServiceClient_Delete_Call
func (*CacheServiceClient_Delete_Call) RunAndReturn ¶ added in v1.15.2
func (_c *CacheServiceClient_Delete_Call) RunAndReturn(run func(context.Context, *cacheservice.DeleteCacheRequest, ...grpc.CallOption) (*cacheservice.DeleteCacheResponse, error)) *CacheServiceClient_Delete_Call
type CacheServiceClient_Expecter ¶ added in v1.15.2
type CacheServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheServiceClient_Expecter) Delete ¶ added in v1.15.2
func (_e *CacheServiceClient_Expecter) Delete(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- in *cacheservice.DeleteCacheRequest
- opts ...grpc.CallOption
func (*CacheServiceClient_Expecter) Get ¶ added in v1.15.2
func (_e *CacheServiceClient_Expecter) Get(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- in *cacheservice.GetCacheRequest
- opts ...grpc.CallOption
func (*CacheServiceClient_Expecter) GetOrExtendReservation ¶ added in v1.15.2
func (_e *CacheServiceClient_Expecter) GetOrExtendReservation(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_GetOrExtendReservation_Call
GetOrExtendReservation is a helper method to define mock.On call
- ctx context.Context
- in *cacheservice.GetOrExtendReservationRequest
- opts ...grpc.CallOption
func (*CacheServiceClient_Expecter) Put ¶ added in v1.15.2
func (_e *CacheServiceClient_Expecter) Put(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Put_Call
Put is a helper method to define mock.On call
- ctx context.Context
- in *cacheservice.PutCacheRequest
- opts ...grpc.CallOption
func (*CacheServiceClient_Expecter) ReleaseReservation ¶ added in v1.15.2
func (_e *CacheServiceClient_Expecter) ReleaseReservation(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_ReleaseReservation_Call
ReleaseReservation is a helper method to define mock.On call
- ctx context.Context
- in *cacheservice.ReleaseReservationRequest
- opts ...grpc.CallOption
type CacheServiceClient_GetOrExtendReservation_Call ¶ added in v1.15.2
CacheServiceClient_GetOrExtendReservation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrExtendReservation'
func (*CacheServiceClient_GetOrExtendReservation_Call) Run ¶ added in v1.15.2
func (_c *CacheServiceClient_GetOrExtendReservation_Call) Run(run func(ctx context.Context, in *cacheservice.GetOrExtendReservationRequest, opts ...grpc.CallOption)) *CacheServiceClient_GetOrExtendReservation_Call
func (*CacheServiceClient_GetOrExtendReservation_Call) RunAndReturn ¶ added in v1.15.2
func (_c *CacheServiceClient_GetOrExtendReservation_Call) RunAndReturn(run func(context.Context, *cacheservice.GetOrExtendReservationRequest, ...grpc.CallOption) (*cacheservice.GetOrExtendReservationResponse, error)) *CacheServiceClient_GetOrExtendReservation_Call
type CacheServiceClient_Get_Call ¶ added in v1.15.2
CacheServiceClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CacheServiceClient_Get_Call) Return ¶ added in v1.15.2
func (_c *CacheServiceClient_Get_Call) Return(_a0 *cacheservice.GetCacheResponse, _a1 error) *CacheServiceClient_Get_Call
func (*CacheServiceClient_Get_Call) Run ¶ added in v1.15.2
func (_c *CacheServiceClient_Get_Call) Run(run func(ctx context.Context, in *cacheservice.GetCacheRequest, opts ...grpc.CallOption)) *CacheServiceClient_Get_Call
func (*CacheServiceClient_Get_Call) RunAndReturn ¶ added in v1.15.2
func (_c *CacheServiceClient_Get_Call) RunAndReturn(run func(context.Context, *cacheservice.GetCacheRequest, ...grpc.CallOption) (*cacheservice.GetCacheResponse, error)) *CacheServiceClient_Get_Call
type CacheServiceClient_Put_Call ¶ added in v1.15.2
CacheServiceClient_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*CacheServiceClient_Put_Call) Return ¶ added in v1.15.2
func (_c *CacheServiceClient_Put_Call) Return(_a0 *cacheservice.PutCacheResponse, _a1 error) *CacheServiceClient_Put_Call
func (*CacheServiceClient_Put_Call) Run ¶ added in v1.15.2
func (_c *CacheServiceClient_Put_Call) Run(run func(ctx context.Context, in *cacheservice.PutCacheRequest, opts ...grpc.CallOption)) *CacheServiceClient_Put_Call
func (*CacheServiceClient_Put_Call) RunAndReturn ¶ added in v1.15.2
func (_c *CacheServiceClient_Put_Call) RunAndReturn(run func(context.Context, *cacheservice.PutCacheRequest, ...grpc.CallOption) (*cacheservice.PutCacheResponse, error)) *CacheServiceClient_Put_Call
type CacheServiceClient_ReleaseReservation_Call ¶ added in v1.15.2
CacheServiceClient_ReleaseReservation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReleaseReservation'
func (*CacheServiceClient_ReleaseReservation_Call) Return ¶ added in v1.15.2
func (_c *CacheServiceClient_ReleaseReservation_Call) Return(_a0 *cacheservice.ReleaseReservationResponse, _a1 error) *CacheServiceClient_ReleaseReservation_Call
func (*CacheServiceClient_ReleaseReservation_Call) Run ¶ added in v1.15.2
func (_c *CacheServiceClient_ReleaseReservation_Call) Run(run func(ctx context.Context, in *cacheservice.ReleaseReservationRequest, opts ...grpc.CallOption)) *CacheServiceClient_ReleaseReservation_Call
func (*CacheServiceClient_ReleaseReservation_Call) RunAndReturn ¶ added in v1.15.2
func (_c *CacheServiceClient_ReleaseReservation_Call) RunAndReturn(run func(context.Context, *cacheservice.ReleaseReservationRequest, ...grpc.CallOption) (*cacheservice.ReleaseReservationResponse, error)) *CacheServiceClient_ReleaseReservation_Call