Documentation ¶
Index ¶
- type GRPCClient
- func (_m *GRPCClient) Allocate(ctx context.Context, in *v1.AllocateRequest, opts ...grpc.CallOption) (*v1.AllocateResponse, error)
- func (_m *GRPCClient) Deallocate(ctx context.Context, in *v1.DeallocateRequest, opts ...grpc.CallOption) (*v1.DeallocateResponse, error)
- func (_m *GRPCClient) EXPECT() *GRPCClient_Expecter
- func (_m *GRPCClient) IsAllocated(ctx context.Context, in *v1.IsAllocatedRequest, opts ...grpc.CallOption) (*v1.IsAllocatedResponse, error)
- type GRPCClient_Allocate_Call
- func (_c *GRPCClient_Allocate_Call) Return(_a0 *v1.AllocateResponse, _a1 error) *GRPCClient_Allocate_Call
- func (_c *GRPCClient_Allocate_Call) Run(run func(ctx context.Context, in *v1.AllocateRequest, opts ...grpc.CallOption)) *GRPCClient_Allocate_Call
- func (_c *GRPCClient_Allocate_Call) RunAndReturn(...) *GRPCClient_Allocate_Call
- type GRPCClient_Deallocate_Call
- type GRPCClient_Expecter
- func (_e *GRPCClient_Expecter) Allocate(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_Allocate_Call
- func (_e *GRPCClient_Expecter) Deallocate(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_Deallocate_Call
- func (_e *GRPCClient_Expecter) IsAllocated(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_IsAllocated_Call
- type GRPCClient_IsAllocated_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCClient ¶ added in v0.1.0
GRPCClient is an autogenerated mock type for the GRPCClient type
func NewGRPCClient ¶ added in v0.1.0
func NewGRPCClient(t mockConstructorTestingTNewGRPCClient) *GRPCClient
NewGRPCClient creates a new instance of GRPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GRPCClient) Allocate ¶ added in v0.1.0
func (_m *GRPCClient) Allocate(ctx context.Context, in *v1.AllocateRequest, opts ...grpc.CallOption) (*v1.AllocateResponse, error)
Allocate provides a mock function with given fields: ctx, in, opts
func (*GRPCClient) Deallocate ¶ added in v0.1.0
func (_m *GRPCClient) Deallocate(ctx context.Context, in *v1.DeallocateRequest, opts ...grpc.CallOption) (*v1.DeallocateResponse, error)
Deallocate provides a mock function with given fields: ctx, in, opts
func (*GRPCClient) EXPECT ¶ added in v0.1.0
func (_m *GRPCClient) EXPECT() *GRPCClient_Expecter
func (*GRPCClient) IsAllocated ¶ added in v0.1.0
func (_m *GRPCClient) IsAllocated(ctx context.Context, in *v1.IsAllocatedRequest, opts ...grpc.CallOption) (*v1.IsAllocatedResponse, error)
IsAllocated provides a mock function with given fields: ctx, in, opts
type GRPCClient_Allocate_Call ¶ added in v0.1.0
GRPCClient_Allocate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Allocate'
func (*GRPCClient_Allocate_Call) Return ¶ added in v0.1.0
func (_c *GRPCClient_Allocate_Call) Return(_a0 *v1.AllocateResponse, _a1 error) *GRPCClient_Allocate_Call
func (*GRPCClient_Allocate_Call) Run ¶ added in v0.1.0
func (_c *GRPCClient_Allocate_Call) Run(run func(ctx context.Context, in *v1.AllocateRequest, opts ...grpc.CallOption)) *GRPCClient_Allocate_Call
func (*GRPCClient_Allocate_Call) RunAndReturn ¶ added in v0.1.0
func (_c *GRPCClient_Allocate_Call) RunAndReturn(run func(context.Context, *v1.AllocateRequest, ...grpc.CallOption) (*v1.AllocateResponse, error)) *GRPCClient_Allocate_Call
type GRPCClient_Deallocate_Call ¶ added in v0.1.0
GRPCClient_Deallocate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deallocate'
func (*GRPCClient_Deallocate_Call) Return ¶ added in v0.1.0
func (_c *GRPCClient_Deallocate_Call) Return(_a0 *v1.DeallocateResponse, _a1 error) *GRPCClient_Deallocate_Call
func (*GRPCClient_Deallocate_Call) Run ¶ added in v0.1.0
func (_c *GRPCClient_Deallocate_Call) Run(run func(ctx context.Context, in *v1.DeallocateRequest, opts ...grpc.CallOption)) *GRPCClient_Deallocate_Call
func (*GRPCClient_Deallocate_Call) RunAndReturn ¶ added in v0.1.0
func (_c *GRPCClient_Deallocate_Call) RunAndReturn(run func(context.Context, *v1.DeallocateRequest, ...grpc.CallOption) (*v1.DeallocateResponse, error)) *GRPCClient_Deallocate_Call
type GRPCClient_Expecter ¶ added in v0.1.0
type GRPCClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GRPCClient_Expecter) Allocate ¶ added in v0.1.0
func (_e *GRPCClient_Expecter) Allocate(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_Allocate_Call
Allocate is a helper method to define mock.On call
- ctx context.Context
- in *v1.AllocateRequest
- opts ...grpc.CallOption
func (*GRPCClient_Expecter) Deallocate ¶ added in v0.1.0
func (_e *GRPCClient_Expecter) Deallocate(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_Deallocate_Call
Deallocate is a helper method to define mock.On call
- ctx context.Context
- in *v1.DeallocateRequest
- opts ...grpc.CallOption
func (*GRPCClient_Expecter) IsAllocated ¶ added in v0.1.0
func (_e *GRPCClient_Expecter) IsAllocated(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_IsAllocated_Call
IsAllocated is a helper method to define mock.On call
- ctx context.Context
- in *v1.IsAllocatedRequest
- opts ...grpc.CallOption
type GRPCClient_IsAllocated_Call ¶ added in v0.1.0
GRPCClient_IsAllocated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAllocated'
func (*GRPCClient_IsAllocated_Call) Return ¶ added in v0.1.0
func (_c *GRPCClient_IsAllocated_Call) Return(_a0 *v1.IsAllocatedResponse, _a1 error) *GRPCClient_IsAllocated_Call
func (*GRPCClient_IsAllocated_Call) Run ¶ added in v0.1.0
func (_c *GRPCClient_IsAllocated_Call) Run(run func(ctx context.Context, in *v1.IsAllocatedRequest, opts ...grpc.CallOption)) *GRPCClient_IsAllocated_Call
func (*GRPCClient_IsAllocated_Call) RunAndReturn ¶ added in v0.1.0
func (_c *GRPCClient_IsAllocated_Call) RunAndReturn(run func(context.Context, *v1.IsAllocatedRequest, ...grpc.CallOption) (*v1.IsAllocatedResponse, error)) *GRPCClient_IsAllocated_Call