Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockProxyClient
- type MockProxyClientMockRecorder
- type MockRMB
- func (m *MockRMB) EXPECT() *MockRMBMockRecorder
- func (m *MockRMB) GetStoragePools(ctx context.Context, nodeTwin uint32) ([]pkg.PoolMetrics, error)
- func (m *MockRMB) ListGPUs(ctx context.Context, nodeTwin uint32) ([]pkg.GPU, error)
- func (m *MockRMB) Statistics(ctx context.Context, nodeTwin uint32) (pkg.Counters, error)
- type MockRMBMockRecorder
- type MockSubstrate
- func (m *MockSubstrate) EXPECT() *MockSubstrateMockRecorder
- func (m *MockSubstrate) GetDedicatedNodePrice(nodeID uint32) (uint64, error)
- func (m *MockSubstrate) GetFarm(id uint32) (*substrate.Farm, error)
- func (m *MockSubstrate) GetNode(nodeID uint32) (*substrate.Node, error)
- func (m *MockSubstrate) GetNodeContracts(nodeID uint32) ([]types.U64, error)
- func (m *MockSubstrate) GetNodeRentContract(nodeID uint32) (uint64, error)
- func (m *MockSubstrate) GetNodes(farmID uint32) ([]uint32, error)
- func (m *MockSubstrate) GetPowerTarget(nodeID uint32) (substrate.NodePower, error)
- func (m *MockSubstrate) GetTwinByPubKey(publicKey []byte) (uint32, error)
- func (m *MockSubstrate) SetNodePowerTarget(identity substrate.Identity, nodeID uint32, up bool) (types.Hash, error)
- type MockSubstrateMockRecorder
- func (mr *MockSubstrateMockRecorder) GetDedicatedNodePrice(nodeID interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) GetFarm(id interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) GetNode(nodeID interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) GetNodeContracts(nodeID interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) GetNodeRentContract(nodeID interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) GetNodes(farmID interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) GetPowerTarget(nodeID interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) GetTwinByPubKey(publicKey interface{}) *gomock.Call
- func (mr *MockSubstrateMockRecorder) SetNodePowerTarget(identity, nodeID, up interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProxyClient ¶
type MockProxyClient struct {
// contains filtered or unexported fields
}
MockProxyClient is a mock of ProxyClient interface.
func NewMockProxyClient ¶
func NewMockProxyClient(ctrl *gomock.Controller) *MockProxyClient
NewMockProxyClient creates a new mock instance.
func (*MockProxyClient) EXPECT ¶
func (m *MockProxyClient) EXPECT() *MockProxyClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProxyClient) Node ¶
func (m *MockProxyClient) Node(ctx context.Context, nodeID uint32) (types.NodeWithNestedCapacity, error)
Node mocks base method.
type MockProxyClientMockRecorder ¶
type MockProxyClientMockRecorder struct {
// contains filtered or unexported fields
}
MockProxyClientMockRecorder is the mock recorder for MockProxyClient.
func (*MockProxyClientMockRecorder) Node ¶
func (mr *MockProxyClientMockRecorder) Node(ctx, nodeID interface{}) *gomock.Call
Node indicates an expected call of Node.
type MockRMB ¶
type MockRMB struct {
// contains filtered or unexported fields
}
MockRMB is a mock of RMB interface.
func NewMockRMB ¶
func NewMockRMB(ctrl *gomock.Controller) *MockRMB
NewMockRMB creates a new mock instance.
func (*MockRMB) EXPECT ¶
func (m *MockRMB) EXPECT() *MockRMBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRMB) GetStoragePools ¶
GetStoragePools mocks base method.
type MockRMBMockRecorder ¶
type MockRMBMockRecorder struct {
// contains filtered or unexported fields
}
MockRMBMockRecorder is the mock recorder for MockRMB.
func (*MockRMBMockRecorder) GetStoragePools ¶
func (mr *MockRMBMockRecorder) GetStoragePools(ctx, nodeTwin interface{}) *gomock.Call
GetStoragePools indicates an expected call of GetStoragePools.
func (*MockRMBMockRecorder) ListGPUs ¶
func (mr *MockRMBMockRecorder) ListGPUs(ctx, nodeTwin interface{}) *gomock.Call
ListGPUs indicates an expected call of ListGPUs.
func (*MockRMBMockRecorder) Statistics ¶
func (mr *MockRMBMockRecorder) Statistics(ctx, nodeTwin interface{}) *gomock.Call
Statistics indicates an expected call of Statistics.
type MockSubstrate ¶
type MockSubstrate struct {
// contains filtered or unexported fields
}
MockSubstrate is a mock of Substrate interface.
func NewMockSubstrate ¶
func NewMockSubstrate(ctrl *gomock.Controller) *MockSubstrate
NewMockSubstrate creates a new mock instance.
func (*MockSubstrate) EXPECT ¶
func (m *MockSubstrate) EXPECT() *MockSubstrateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubstrate) GetDedicatedNodePrice ¶
func (m *MockSubstrate) GetDedicatedNodePrice(nodeID uint32) (uint64, error)
GetDedicatedNodePrice mocks base method.
func (*MockSubstrate) GetFarm ¶
func (m *MockSubstrate) GetFarm(id uint32) (*substrate.Farm, error)
GetFarm mocks base method.
func (*MockSubstrate) GetNode ¶
func (m *MockSubstrate) GetNode(nodeID uint32) (*substrate.Node, error)
GetNode mocks base method.
func (*MockSubstrate) GetNodeContracts ¶
func (m *MockSubstrate) GetNodeContracts(nodeID uint32) ([]types.U64, error)
GetNodeContracts mocks base method.
func (*MockSubstrate) GetNodeRentContract ¶
func (m *MockSubstrate) GetNodeRentContract(nodeID uint32) (uint64, error)
GetNodeRentContract mocks base method.
func (*MockSubstrate) GetNodes ¶
func (m *MockSubstrate) GetNodes(farmID uint32) ([]uint32, error)
GetNodes mocks base method.
func (*MockSubstrate) GetPowerTarget ¶
func (m *MockSubstrate) GetPowerTarget(nodeID uint32) (substrate.NodePower, error)
GetPowerTarget mocks base method.
func (*MockSubstrate) GetTwinByPubKey ¶
func (m *MockSubstrate) GetTwinByPubKey(publicKey []byte) (uint32, error)
GetTwinByPubKey mocks base method.
func (*MockSubstrate) SetNodePowerTarget ¶
func (m *MockSubstrate) SetNodePowerTarget(identity substrate.Identity, nodeID uint32, up bool) (types.Hash, error)
SetNodePowerTarget mocks base method.
type MockSubstrateMockRecorder ¶
type MockSubstrateMockRecorder struct {
// contains filtered or unexported fields
}
MockSubstrateMockRecorder is the mock recorder for MockSubstrate.
func (*MockSubstrateMockRecorder) GetDedicatedNodePrice ¶
func (mr *MockSubstrateMockRecorder) GetDedicatedNodePrice(nodeID interface{}) *gomock.Call
GetDedicatedNodePrice indicates an expected call of GetDedicatedNodePrice.
func (*MockSubstrateMockRecorder) GetFarm ¶
func (mr *MockSubstrateMockRecorder) GetFarm(id interface{}) *gomock.Call
GetFarm indicates an expected call of GetFarm.
func (*MockSubstrateMockRecorder) GetNode ¶
func (mr *MockSubstrateMockRecorder) GetNode(nodeID interface{}) *gomock.Call
GetNode indicates an expected call of GetNode.
func (*MockSubstrateMockRecorder) GetNodeContracts ¶
func (mr *MockSubstrateMockRecorder) GetNodeContracts(nodeID interface{}) *gomock.Call
GetNodeContracts indicates an expected call of GetNodeContracts.
func (*MockSubstrateMockRecorder) GetNodeRentContract ¶
func (mr *MockSubstrateMockRecorder) GetNodeRentContract(nodeID interface{}) *gomock.Call
GetNodeRentContract indicates an expected call of GetNodeRentContract.
func (*MockSubstrateMockRecorder) GetNodes ¶
func (mr *MockSubstrateMockRecorder) GetNodes(farmID interface{}) *gomock.Call
GetNodes indicates an expected call of GetNodes.
func (*MockSubstrateMockRecorder) GetPowerTarget ¶
func (mr *MockSubstrateMockRecorder) GetPowerTarget(nodeID interface{}) *gomock.Call
GetPowerTarget indicates an expected call of GetPowerTarget.
func (*MockSubstrateMockRecorder) GetTwinByPubKey ¶
func (mr *MockSubstrateMockRecorder) GetTwinByPubKey(publicKey interface{}) *gomock.Call
GetTwinByPubKey indicates an expected call of GetTwinByPubKey.
func (*MockSubstrateMockRecorder) SetNodePowerTarget ¶
func (mr *MockSubstrateMockRecorder) SetNodePowerTarget(identity, nodeID, up interface{}) *gomock.Call
SetNodePowerTarget indicates an expected call of SetNodePowerTarget.