minerset

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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

New creates a new instance of minerSetBiz with the provided data store, client, and informer factory.

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

func (*MockMinerSetBizMockRecorder) Scale

func (mr *MockMinerSetBizMockRecorder) Scale(arg0, arg1, arg2, arg3 any) *gomock.Call

Scale indicates an expected call of Scale.

func (*MockMinerSetBizMockRecorder) Update

func (mr *MockMinerSetBizMockRecorder) Update(arg0, arg1, arg2 any) *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