Documentation ¶
Overview ¶
Package minerset is a generated GoMock package.
Index ¶
- func New(ds store.IStore, client clientset.Interface, f informers.SharedInformerFactory) *minerSetBiz
- type MinerSetBiz
- type MinerSetExpansion
- type MockMinerSetBiz
- func (m *MockMinerSetBiz) Create(arg0 context.Context, arg1 string, arg2 *v1beta1.MinerSet) error
- func (m *MockMinerSetBiz) Delete(arg0 context.Context, arg1, arg2 string) error
- func (m *MockMinerSetBiz) EXPECT() *MockMinerSetBizMockRecorder
- func (m *MockMinerSetBiz) Get(arg0 context.Context, arg1, arg2 string) (*v1beta1.MinerSet, error)
- func (m *MockMinerSetBiz) List(arg0 context.Context, arg1 string, arg2 *v1.ListMinerSetRequest) (*v1.ListMinerSetResponse, error)
- func (m *MockMinerSetBiz) Scale(arg0 context.Context, arg1, arg2 string, arg3 int32) error
- func (m *MockMinerSetBiz) Update(arg0 context.Context, arg1 string, arg2 *v1beta1.MinerSet) error
- type MockMinerSetBizMockRecorder
- func (mr *MockMinerSetBizMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerSetBizMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerSetBizMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerSetBizMockRecorder) List(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockMinerSetBizMockRecorder) Scale(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockMinerSetBizMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MinerSetBiz ¶
type MinerSetBiz interface { // Create creates a new miner set in the specified namespace. Create(ctx context.Context, namespace string, ms *v1beta1.MinerSet) error // Update updates an existing miner set in the specified namespace. Update(ctx context.Context, namespace string, ms *v1beta1.MinerSet) error // Delete removes a miner set by name from the specified namespace. Delete(ctx context.Context, namespace, name string) error // Get retrieves a miner set by name from the specified namespace. Get(ctx context.Context, namespace, name string) (*v1beta1.MinerSet, error) // List retrieves a list of miner sets in the specified namespace based on the request parameters. List(ctx context.Context, namespace string, rq *v1.ListMinerSetRequest) (*v1.ListMinerSetResponse, error) MinerSetExpansion }
MinerSetBiz defines the interface for handling miner set requests.
type MinerSetExpansion ¶
type MinerSetExpansion interface { // Scale adjusts the number of replicas for a miner set. Scale(ctx context.Context, namespace, name string, replicas int32) error }
MinerSetExpansion defines additional methods for miner set operations.
type MockMinerSetBiz ¶
type MockMinerSetBiz struct {
// contains filtered or unexported fields
}
MockMinerSetBiz is a mock of MinerSetBiz interface.
func NewMockMinerSetBiz ¶
func NewMockMinerSetBiz(ctrl *gomock.Controller) *MockMinerSetBiz
NewMockMinerSetBiz creates a new mock instance.
func (*MockMinerSetBiz) Delete ¶
func (m *MockMinerSetBiz) Delete(arg0 context.Context, arg1, arg2 string) error
Delete mocks base method.
func (*MockMinerSetBiz) EXPECT ¶
func (m *MockMinerSetBiz) EXPECT() *MockMinerSetBizMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMinerSetBiz) List ¶
func (m *MockMinerSetBiz) List(arg0 context.Context, arg1 string, arg2 *v1.ListMinerSetRequest) (*v1.ListMinerSetResponse, error)
List mocks base method.
type MockMinerSetBizMockRecorder ¶
type MockMinerSetBizMockRecorder struct {
// contains filtered or unexported fields
}
MockMinerSetBizMockRecorder is the mock recorder for MockMinerSetBiz.
func (*MockMinerSetBizMockRecorder) Create ¶
func (mr *MockMinerSetBizMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockMinerSetBizMockRecorder) Delete ¶
func (mr *MockMinerSetBizMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMinerSetBizMockRecorder) Get ¶
func (mr *MockMinerSetBizMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockMinerSetBizMockRecorder) List ¶
func (mr *MockMinerSetBizMockRecorder) List(arg0, arg1, arg2 any) *gomock.Call
List indicates an expected call of List.