miner

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: 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

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

Types

type MinerBiz

type MinerBiz interface {
	// Create creates a new miner in the specified namespace.
	Create(ctx context.Context, namespace string, m *v1beta1.Miner) error

	// Update updates an existing miner in the specified namespace.
	Update(ctx context.Context, namespace string, m *v1beta1.Miner) error

	// Delete removes a miner by name from the specified namespace.
	Delete(ctx context.Context, namespace, name string) error

	// Get retrieves a miner by name from the specified namespace.
	Get(ctx context.Context, namespace, name string) (*v1beta1.Miner, error)

	// List retrieves a list of miners in the specified namespace based on the request parameters.
	List(ctx context.Context, namespace string, rq *v1.ListMinerRequest) (*v1.ListMinerResponse, error)

	MinerExpansion
}

MinerBiz defines the interface for handling miner requests.

type MinerExpansion

type MinerExpansion interface{}

MinerExpansion defines additional methods for miner operations.

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

func (*MockMinerBizMockRecorder) List

func (mr *MockMinerBizMockRecorder) List(arg0, arg1, arg2 any) *gomock.Call

List indicates an expected call of List.

func (*MockMinerBizMockRecorder) Update

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