miner

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package miner is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ds store.IStore, client clientset.Interface, f informers.SharedInformerFactory) *minerBiz

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) Create

func (m *MockMinerBiz) Create(arg0 context.Context, arg1 string, arg2 *v1beta1.Miner) error

Create mocks base method.

func (*MockMinerBiz) Delete

func (m *MockMinerBiz) Delete(arg0 context.Context, arg1, arg2 string) error

Delete mocks base method.

func (*MockMinerBiz) EXPECT

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

func (*MockMinerBiz) Get

func (m *MockMinerBiz) Get(arg0 context.Context, arg1, arg2 string) (*v1beta1.Miner, error)

Get mocks base method.

func (*MockMinerBiz) List

List mocks base method.

func (*MockMinerBiz) Update

func (m *MockMinerBiz) Update(arg0 context.Context, arg1 string, arg2 *v1beta1.Miner) error

Update 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 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockMinerBizMockRecorder) Delete

func (mr *MockMinerBizMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockMinerBizMockRecorder) Get

func (mr *MockMinerBizMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockMinerBizMockRecorder) List

func (mr *MockMinerBizMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockMinerBizMockRecorder) Update

func (mr *MockMinerBizMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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