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 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(ctx context.Context, namespace string, m *v1beta1.Miner) error List(ctx context.Context, namespace string, rq *v1.ListMinerRequest) (*v1.ListMinerResponse, error) Get(ctx context.Context, namespace, name string) (*v1beta1.Miner, error) Update(ctx context.Context, namespace string, m *v1beta1.Miner) error Delete(ctx context.Context, namespace, name string) error }
MinerBiz defines functions used to handle miner rquest.
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.