mocks

package
v0.0.0-...-924030b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProxyClient) Node

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

func (m *MockRMB) GetStoragePools(ctx context.Context, nodeTwin uint32) ([]pkg.PoolMetrics, error)

GetStoragePools mocks base method.

func (*MockRMB) ListGPUs

func (m *MockRMB) ListGPUs(ctx context.Context, nodeTwin uint32) ([]pkg.GPU, error)

ListGPUs mocks base method.

func (*MockRMB) Statistics

func (m *MockRMB) Statistics(ctx context.Context, nodeTwin uint32) (pkg.Counters, error)

Statistics 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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL