minerset

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: 15 Imported by: 0

Documentation

Overview

Package minerset 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) *minerSetBiz

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

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

Create mocks base method.

func (*MockMinerSetBiz) Delete

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

Delete mocks base method.

func (*MockMinerSetBiz) EXPECT

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

func (*MockMinerSetBiz) Get

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

Get mocks base method.

func (*MockMinerSetBiz) List

List mocks base method.

func (*MockMinerSetBiz) Scale

func (m *MockMinerSetBiz) Scale(arg0 context.Context, arg1, arg2 string, arg3 int32) error

Scale mocks base method.

func (*MockMinerSetBiz) Update

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

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

Create indicates an expected call of Create.

func (*MockMinerSetBizMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockMinerSetBizMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockMinerSetBizMockRecorder) List

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

List indicates an expected call of List.

func (*MockMinerSetBizMockRecorder) Scale

func (mr *MockMinerSetBizMockRecorder) Scale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Scale indicates an expected call of Scale.

func (*MockMinerSetBizMockRecorder) Update

func (mr *MockMinerSetBizMockRecorder) 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