Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAllocationServiceClient ¶
type MockAllocationServiceClient struct {
// contains filtered or unexported fields
}
func CreateMockAllocationServiceClient ¶ added in v1.0.0
func CreateMockAllocationServiceClient(hosts []string) *MockAllocationServiceClient
CreateMockAllocationServiceClient creates a new MockAllocationServiceClient, requires a mock hosts to random allocate.
func (*MockAllocationServiceClient) Allocate ¶
func (m *MockAllocationServiceClient) Allocate( _ context.Context, _ *allocation.AllocationRequest, _ ...grpc.CallOption, ) (*allocation.AllocationResponse, error)
Allocate is a mock implementation of Allocate
Click to show internal directories.
Click to hide internal directories.