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 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(ctx context.Context, namespace string, ms *v1beta1.MinerSet) error List(ctx context.Context, namespace string, rq *v1.ListMinerSetRequest) (*v1.ListMinerSetResponse, error) Get(ctx context.Context, namespace, name string) (*v1beta1.MinerSet, error) Update(ctx context.Context, namespace string, ms *v1beta1.MinerSet) error Delete(ctx context.Context, namespace, name string) error Scale(ctx context.Context, namespace, name string, replicas int32) error }
MinerSetBiz defines functions used to handle minerset rquest.
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.
Click to show internal directories.
Click to hide internal directories.