mock_storage

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHost

type MockHost struct {
	// contains filtered or unexported fields
}

MockHost is a mock of Host interface.

func NewMockHost

func NewMockHost(ctrl *gomock.Controller) *MockHost

NewMockHost creates a new mock instance.

func (*MockHost) Add

func (m *MockHost) Add(ctx context.Context, host *entity.Host) (*entity.Host, error)

Add mocks base method.

func (*MockHost) Delete

func (m *MockHost) Delete(ctx context.Context, id uint64) error

Delete mocks base method.

func (*MockHost) EXPECT

func (m *MockHost) EXPECT() *MockHostMockRecorder

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

func (*MockHost) List

func (m *MockHost) List(ctx context.Context, filter *entity.ListHostFilter) ([]*entity.Host, error)

List mocks base method.

type MockHostMockRecorder

type MockHostMockRecorder struct {
	// contains filtered or unexported fields
}

MockHostMockRecorder is the mock recorder for MockHost.

func (*MockHostMockRecorder) Add

func (mr *MockHostMockRecorder) Add(ctx, host any) *gomock.Call

Add indicates an expected call of Add.

func (*MockHostMockRecorder) Delete

func (mr *MockHostMockRecorder) Delete(ctx, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockHostMockRecorder) List

func (mr *MockHostMockRecorder) List(ctx, filter any) *gomock.Call

List indicates an expected call of List.

type MockNetwork

type MockNetwork struct {
	// contains filtered or unexported fields
}

MockNetwork is a mock of Network interface.

func NewMockNetwork

func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork

NewMockNetwork creates a new mock instance.

func (*MockNetwork) Add

func (m *MockNetwork) Add(ctx context.Context, network *entity.Network) (*entity.Network, error)

Add mocks base method.

func (*MockNetwork) Delete

func (m *MockNetwork) Delete(ctx context.Context, id uint64) error

Delete mocks base method.

func (*MockNetwork) EXPECT

func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder

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

func (*MockNetwork) Get

func (m *MockNetwork) Get(ctx context.Context, id uint64) (*entity.Network, error)

Get mocks base method.

func (*MockNetwork) List

func (m *MockNetwork) List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.Network, error)

List mocks base method.

type MockNetworkHost

type MockNetworkHost struct {
	// contains filtered or unexported fields
}

MockNetworkHost is a mock of NetworkHost interface.

func NewMockNetworkHost

func NewMockNetworkHost(ctrl *gomock.Controller) *MockNetworkHost

NewMockNetworkHost creates a new mock instance.

func (*MockNetworkHost) Add

func (m *MockNetworkHost) Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)

Add mocks base method.

func (*MockNetworkHost) Delete

func (m *MockNetworkHost) Delete(ctx context.Context, id uint64) error

Delete mocks base method.

func (*MockNetworkHost) EXPECT

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

func (*MockNetworkHost) Get

Get mocks base method.

func (*MockNetworkHost) List

List mocks base method.

type MockNetworkHostMockRecorder

type MockNetworkHostMockRecorder struct {
	// contains filtered or unexported fields
}

MockNetworkHostMockRecorder is the mock recorder for MockNetworkHost.

func (*MockNetworkHostMockRecorder) Add

func (mr *MockNetworkHostMockRecorder) Add(ctx, networkHost any) *gomock.Call

Add indicates an expected call of Add.

func (*MockNetworkHostMockRecorder) Delete

func (mr *MockNetworkHostMockRecorder) Delete(ctx, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockNetworkHostMockRecorder) Get

func (mr *MockNetworkHostMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockNetworkHostMockRecorder) List

func (mr *MockNetworkHostMockRecorder) List(ctx, filter any) *gomock.Call

List indicates an expected call of List.

type MockNetworkHostSetup

type MockNetworkHostSetup struct {
	// contains filtered or unexported fields
}

MockNetworkHostSetup is a mock of NetworkHostSetup interface.

func NewMockNetworkHostSetup

func NewMockNetworkHostSetup(ctrl *gomock.Controller) *MockNetworkHostSetup

NewMockNetworkHostSetup creates a new mock instance.

func (*MockNetworkHostSetup) AddBatch

func (m *MockNetworkHostSetup) AddBatch(ctx context.Context, batch []*entity.NetworkHostSetup) error

AddBatch mocks base method.

func (*MockNetworkHostSetup) DeleteBatchByNetworkHostIDs

func (m *MockNetworkHostSetup) DeleteBatchByNetworkHostIDs(ctx context.Context, networkHostIDs []uint64) error

DeleteBatchByNetworkHostIDs mocks base method.

func (*MockNetworkHostSetup) EXPECT

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

type MockNetworkHostSetupMockRecorder

type MockNetworkHostSetupMockRecorder struct {
	// contains filtered or unexported fields
}

MockNetworkHostSetupMockRecorder is the mock recorder for MockNetworkHostSetup.

func (*MockNetworkHostSetupMockRecorder) AddBatch

func (mr *MockNetworkHostSetupMockRecorder) AddBatch(ctx, batch any) *gomock.Call

AddBatch indicates an expected call of AddBatch.

func (*MockNetworkHostSetupMockRecorder) DeleteBatchByNetworkHostIDs

func (mr *MockNetworkHostSetupMockRecorder) DeleteBatchByNetworkHostIDs(ctx, networkHostIDs any) *gomock.Call

DeleteBatchByNetworkHostIDs indicates an expected call of DeleteBatchByNetworkHostIDs.

type MockNetworkMockRecorder

type MockNetworkMockRecorder struct {
	// contains filtered or unexported fields
}

MockNetworkMockRecorder is the mock recorder for MockNetwork.

func (*MockNetworkMockRecorder) Add

func (mr *MockNetworkMockRecorder) Add(ctx, network any) *gomock.Call

Add indicates an expected call of Add.

func (*MockNetworkMockRecorder) Delete

func (mr *MockNetworkMockRecorder) Delete(ctx, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockNetworkMockRecorder) Get

func (mr *MockNetworkMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockNetworkMockRecorder) List

func (mr *MockNetworkMockRecorder) List(ctx, filter any) *gomock.Call

List indicates an expected call of List.

Jump to

Keyboard shortcuts

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