Documentation ¶
Overview ¶
Package miner is a generated GoMock package.
Index ¶
- func New(ds store.IStore, client clientset.Interface, f informers.SharedInformerFactory) *minerBiz
- type MinerBiz
- type MinerExpansion
- type MockMinerBiz
- func (m *MockMinerBiz) Create(arg0 context.Context, arg1 string, arg2 *v1beta1.Miner) error
- func (m *MockMinerBiz) Delete(arg0 context.Context, arg1, arg2 string) error
- func (m *MockMinerBiz) EXPECT() *MockMinerBizMockRecorder
- func (m *MockMinerBiz) Get(arg0 context.Context, arg1, arg2 string) (*v1beta1.Miner, error)
- func (m *MockMinerBiz) List(arg0 context.Context, arg1 string, arg2 *v1.ListMinerRequest) (*v1.ListMinerResponse, error)
- func (m *MockMinerBiz) Update(arg0 context.Context, arg1 string, arg2 *v1beta1.Miner) error
- type MockMinerBizMockRecorder
- func (mr *MockMinerBizMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerBizMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerBizMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerBizMockRecorder) List(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerBizMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MinerBiz ¶
type MinerBiz interface { // Create creates a new miner in the specified namespace. Create(ctx context.Context, namespace string, m *v1beta1.Miner) error // Update updates an existing miner in the specified namespace. Update(ctx context.Context, namespace string, m *v1beta1.Miner) error // Delete removes a miner by name from the specified namespace. Delete(ctx context.Context, namespace, name string) error // Get retrieves a miner by name from the specified namespace. Get(ctx context.Context, namespace, name string) (*v1beta1.Miner, error) // List retrieves a list of miners in the specified namespace based on the request parameters. List(ctx context.Context, namespace string, rq *v1.ListMinerRequest) (*v1.ListMinerResponse, error) MinerExpansion }
MinerBiz defines the interface for handling miner requests.
type MinerExpansion ¶
type MinerExpansion interface{}
MinerExpansion defines additional methods for miner operations.
type MockMinerBiz ¶
type MockMinerBiz struct {
// contains filtered or unexported fields
}
MockMinerBiz is a mock of MinerBiz interface.
func NewMockMinerBiz ¶
func NewMockMinerBiz(ctrl *gomock.Controller) *MockMinerBiz
NewMockMinerBiz creates a new mock instance.
func (*MockMinerBiz) Delete ¶
func (m *MockMinerBiz) Delete(arg0 context.Context, arg1, arg2 string) error
Delete mocks base method.
func (*MockMinerBiz) EXPECT ¶
func (m *MockMinerBiz) EXPECT() *MockMinerBizMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMinerBiz) List ¶
func (m *MockMinerBiz) List(arg0 context.Context, arg1 string, arg2 *v1.ListMinerRequest) (*v1.ListMinerResponse, error)
List mocks base method.
type MockMinerBizMockRecorder ¶
type MockMinerBizMockRecorder struct {
// contains filtered or unexported fields
}
MockMinerBizMockRecorder is the mock recorder for MockMinerBiz.
func (*MockMinerBizMockRecorder) Create ¶
func (mr *MockMinerBizMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockMinerBizMockRecorder) Delete ¶
func (mr *MockMinerBizMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMinerBizMockRecorder) Get ¶
func (mr *MockMinerBizMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
Get indicates an expected call of Get.
Click to show internal directories.
Click to hide internal directories.