Documentation
¶
Overview ¶
Package mock_usecase is a generated GoMock package.
Index ¶
- type MockCommandExecutor
- func (m *MockCommandExecutor) EXPECT() *MockCommandExecutorMockRecorder
- func (m *MockCommandExecutor) GetCurrentVPN(ctx context.Context) (entity.VPNService, error)
- func (m *MockCommandExecutor) GetDefaultNetworkInterface(ctx context.Context) (entity.NetworkInterface, error)
- func (m *MockCommandExecutor) GetNetworkInfoByNetworkService(ctx context.Context, networkService entity.NetworkService) (*entity.NetworkInfo, error)
- func (m *MockCommandExecutor) GetNetworkServiceByNetworkInterface(ctx context.Context, networkInterface entity.NetworkInterface) (entity.NetworkService, error)
- func (m *MockCommandExecutor) ListVPN(ctx context.Context) ([]entity.VPNService, error)
- func (m *MockCommandExecutor) OpenInFinder(ctx context.Context, path string) error
- func (m *MockCommandExecutor) SetNetworkAdditionalRoutes(ctx context.Context, network *entity.Network, ...) error
- type MockCommandExecutorMockRecorder
- func (mr *MockCommandExecutorMockRecorder) GetCurrentVPN(ctx any) *gomock.Call
- func (mr *MockCommandExecutorMockRecorder) GetDefaultNetworkInterface(ctx any) *gomock.Call
- func (mr *MockCommandExecutorMockRecorder) GetNetworkInfoByNetworkService(ctx, networkService any) *gomock.Call
- func (mr *MockCommandExecutorMockRecorder) GetNetworkServiceByNetworkInterface(ctx, networkInterface any) *gomock.Call
- func (mr *MockCommandExecutorMockRecorder) ListVPN(ctx any) *gomock.Call
- func (mr *MockCommandExecutorMockRecorder) OpenInFinder(ctx, path any) *gomock.Call
- func (mr *MockCommandExecutorMockRecorder) SetNetworkAdditionalRoutes(ctx, network, networkHostSetupList any) *gomock.Call
- type MockCommandRunner
- type MockCommandRunnerMockRecorder
- type MockHost
- type MockHostMockRecorder
- type MockNetwork
- func (m *MockNetwork) Add(ctx context.Context, network *entity.Network) (*entity.Network, error)
- func (m *MockNetwork) Delete(ctx context.Context, id uint64) error
- func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
- func (m *MockNetwork) List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.NetworkWithStatus, error)
- func (m *MockNetwork) ListVPNServices(ctx context.Context) ([]entity.VPNService, error)
- type MockNetworkHost
- func (m *MockNetworkHost) Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
- func (m *MockNetworkHost) Delete(ctx context.Context, id uint64) error
- func (m *MockNetworkHost) EXPECT() *MockNetworkHostMockRecorder
- func (m *MockNetworkHost) ExportByNetworkIDForContext(ctx context.Context, networkID uint64) (*entity.NetworkHostContextExportPayload, error)
- func (m *MockNetworkHost) ImportByNetworkIDFromJSON(ctx context.Context, networkID uint64, jsonData string) error
- func (m *MockNetworkHost) List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, error)
- type MockNetworkHostMockRecorder
- func (mr *MockNetworkHostMockRecorder) Add(ctx, networkHost any) *gomock.Call
- func (mr *MockNetworkHostMockRecorder) Delete(ctx, id any) *gomock.Call
- func (mr *MockNetworkHostMockRecorder) ExportByNetworkIDForContext(ctx, networkID any) *gomock.Call
- func (mr *MockNetworkHostMockRecorder) ImportByNetworkIDFromJSON(ctx, networkID, jsonData any) *gomock.Call
- func (mr *MockNetworkHostMockRecorder) List(ctx, filter any) *gomock.Call
- type MockNetworkHostSetup
- type MockNetworkHostSetupMockRecorder
- type MockNetworkMockRecorder
- type MockUpdate
- type MockUpdateMockRecorder
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 ¶
func (m *MockCommandExecutor) EXPECT() *MockCommandExecutorMockRecorder
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 ¶
func (m *MockCommandExecutor) ListVPN(ctx context.Context) ([]entity.VPNService, error)
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
func (m *MockCommandRunner) EXPECT() *MockCommandRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCommandRunnerMockRecorder ¶ added in v0.1.25
type MockCommandRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandRunnerMockRecorder is the mock recorder for MockCommandRunner.
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) EXPECT ¶
func (m *MockHost) EXPECT() *MockHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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) 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 ¶
func (m *MockNetwork) List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.NetworkWithStatus, error)
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 ¶
func (m *MockNetworkHost) EXPECT() *MockNetworkHostMockRecorder
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 ¶
func (m *MockNetworkHost) List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, error)
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.
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 ¶
func (m *MockNetworkHostSetup) EXPECT() *MockNetworkHostSetupMockRecorder
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.