mock_usecase

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_usecase is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCommandExecutor

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

MockCommandExecutor is a mock of CommandExecutor interface.

func NewMockCommandExecutor

func NewMockCommandExecutor(ctrl *gomock.Controller) *MockCommandExecutor

NewMockCommandExecutor creates a new mock instance.

func (*MockCommandExecutor) EXPECT

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

func (*MockCommandExecutor) GetCurrentVPN

func (m *MockCommandExecutor) GetCurrentVPN(ctx context.Context) (entity.VPNService, error)

GetCurrentVPN mocks base method.

func (*MockCommandExecutor) GetDefaultNetworkInterface

func (m *MockCommandExecutor) GetDefaultNetworkInterface(ctx context.Context) (entity.NetworkInterface, error)

GetDefaultNetworkInterface mocks base method.

func (*MockCommandExecutor) GetNetworkInfoByNetworkService

func (m *MockCommandExecutor) GetNetworkInfoByNetworkService(ctx context.Context, networkService entity.NetworkService) (*entity.NetworkInfo, error)

GetNetworkInfoByNetworkService mocks base method.

func (*MockCommandExecutor) GetNetworkServiceByNetworkInterface

func (m *MockCommandExecutor) GetNetworkServiceByNetworkInterface(ctx context.Context, networkInterface entity.NetworkInterface) (entity.NetworkService, error)

GetNetworkServiceByNetworkInterface mocks base method.

func (*MockCommandExecutor) ListVPN

ListVPN mocks base method.

func (*MockCommandExecutor) OpenInFinder

func (m *MockCommandExecutor) OpenInFinder(ctx context.Context, path string) error

OpenInFinder mocks base method.

func (*MockCommandExecutor) SetNetworkAdditionalRoutes

func (m *MockCommandExecutor) SetNetworkAdditionalRoutes(ctx context.Context, network *entity.Network, networkHostSetupList []*entity.NetworkHostSetup) error

SetNetworkAdditionalRoutes mocks base method.

type MockCommandExecutorMockRecorder

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

MockCommandExecutorMockRecorder is the mock recorder for MockCommandExecutor.

func (*MockCommandExecutorMockRecorder) GetCurrentVPN

func (mr *MockCommandExecutorMockRecorder) GetCurrentVPN(ctx any) *gomock.Call

GetCurrentVPN indicates an expected call of GetCurrentVPN.

func (*MockCommandExecutorMockRecorder) GetDefaultNetworkInterface

func (mr *MockCommandExecutorMockRecorder) GetDefaultNetworkInterface(ctx any) *gomock.Call

GetDefaultNetworkInterface indicates an expected call of GetDefaultNetworkInterface.

func (*MockCommandExecutorMockRecorder) GetNetworkInfoByNetworkService

func (mr *MockCommandExecutorMockRecorder) GetNetworkInfoByNetworkService(ctx, networkService any) *gomock.Call

GetNetworkInfoByNetworkService indicates an expected call of GetNetworkInfoByNetworkService.

func (*MockCommandExecutorMockRecorder) GetNetworkServiceByNetworkInterface

func (mr *MockCommandExecutorMockRecorder) GetNetworkServiceByNetworkInterface(ctx, networkInterface any) *gomock.Call

GetNetworkServiceByNetworkInterface indicates an expected call of GetNetworkServiceByNetworkInterface.

func (*MockCommandExecutorMockRecorder) ListVPN

func (mr *MockCommandExecutorMockRecorder) ListVPN(ctx any) *gomock.Call

ListVPN indicates an expected call of ListVPN.

func (*MockCommandExecutorMockRecorder) OpenInFinder

func (mr *MockCommandExecutorMockRecorder) OpenInFinder(ctx, path any) *gomock.Call

OpenInFinder indicates an expected call of OpenInFinder.

func (*MockCommandExecutorMockRecorder) SetNetworkAdditionalRoutes

func (mr *MockCommandExecutorMockRecorder) SetNetworkAdditionalRoutes(ctx, network, networkHostSetupList any) *gomock.Call

SetNetworkAdditionalRoutes indicates an expected call of SetNetworkAdditionalRoutes.

type MockCommandRunner added in v0.1.25

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

MockCommandRunner is a mock of CommandRunner interface.

func NewMockCommandRunner added in v0.1.25

func NewMockCommandRunner(ctrl *gomock.Controller) *MockCommandRunner

NewMockCommandRunner creates a new mock instance.

func (*MockCommandRunner) EXPECT added in v0.1.25

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

func (*MockCommandRunner) Run added in v0.1.25

func (m *MockCommandRunner) Run(ctx context.Context, name string, args ...string) ([]string, error)

Run mocks base method.

type MockCommandRunnerMockRecorder added in v0.1.25

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

MockCommandRunnerMockRecorder is the mock recorder for MockCommandRunner.

func (*MockCommandRunnerMockRecorder) Run added in v0.1.25

func (mr *MockCommandRunnerMockRecorder) Run(ctx, name any, args ...any) *gomock.Call

Run indicates an expected call of Run.

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

List mocks base method.

func (*MockNetwork) ListVPNServices

func (m *MockNetwork) ListVPNServices(ctx context.Context) ([]entity.VPNService, error)

ListVPNServices 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) ExportByNetworkIDForContext

func (m *MockNetworkHost) ExportByNetworkIDForContext(ctx context.Context, networkID uint64) (*entity.NetworkHostContextExportPayload, error)

ExportByNetworkIDForContext mocks base method.

func (*MockNetworkHost) ImportByNetworkIDFromJSON

func (m *MockNetworkHost) ImportByNetworkIDFromJSON(ctx context.Context, networkID uint64, jsonData string) error

ImportByNetworkIDFromJSON 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) ExportByNetworkIDForContext

func (mr *MockNetworkHostMockRecorder) ExportByNetworkIDForContext(ctx, networkID any) *gomock.Call

ExportByNetworkIDForContext indicates an expected call of ExportByNetworkIDForContext.

func (*MockNetworkHostMockRecorder) ImportByNetworkIDFromJSON

func (mr *MockNetworkHostMockRecorder) ImportByNetworkIDFromJSON(ctx, networkID, jsonData any) *gomock.Call

ImportByNetworkIDFromJSON indicates an expected call of ImportByNetworkIDFromJSON.

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

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

func (*MockNetworkHostSetup) ResetByNetworkID

func (m *MockNetworkHostSetup) ResetByNetworkID(ctx context.Context, networkID uint64) error

ResetByNetworkID mocks base method.

func (*MockNetworkHostSetup) SyncByNetworkID

func (m *MockNetworkHostSetup) SyncByNetworkID(ctx context.Context, network uint64) error

SyncByNetworkID mocks base method.

type MockNetworkHostSetupMockRecorder

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

MockNetworkHostSetupMockRecorder is the mock recorder for MockNetworkHostSetup.

func (*MockNetworkHostSetupMockRecorder) ResetByNetworkID

func (mr *MockNetworkHostSetupMockRecorder) ResetByNetworkID(ctx, networkID any) *gomock.Call

ResetByNetworkID indicates an expected call of ResetByNetworkID.

func (*MockNetworkHostSetupMockRecorder) SyncByNetworkID

func (mr *MockNetworkHostSetupMockRecorder) SyncByNetworkID(ctx, network any) *gomock.Call

SyncByNetworkID indicates an expected call of SyncByNetworkID.

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

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

List indicates an expected call of List.

func (*MockNetworkMockRecorder) ListVPNServices

func (mr *MockNetworkMockRecorder) ListVPNServices(ctx any) *gomock.Call

ListVPNServices indicates an expected call of ListVPNServices.

type MockUpdate

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

MockUpdate is a mock of Update interface.

func NewMockUpdate

func NewMockUpdate(ctrl *gomock.Controller) *MockUpdate

NewMockUpdate creates a new mock instance.

func (*MockUpdate) CheckForUpdates

func (m *MockUpdate) CheckForUpdates() (*entity.UpdateInfo, error)

CheckForUpdates mocks base method.

func (*MockUpdate) EXPECT

func (m *MockUpdate) EXPECT() *MockUpdateMockRecorder

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

type MockUpdateMockRecorder

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

MockUpdateMockRecorder is the mock recorder for MockUpdate.

func (*MockUpdateMockRecorder) CheckForUpdates

func (mr *MockUpdateMockRecorder) CheckForUpdates() *gomock.Call

CheckForUpdates indicates an expected call of CheckForUpdates.

Jump to

Keyboard shortcuts

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