mocks

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IncomingEventHandlers

type IncomingEventHandlers struct {
	mock.Mock
}

IncomingEventHandlers is an autogenerated mock type for the IncomingEventHandlers type

func NewIncomingEventHandlers

func NewIncomingEventHandlers(t mockConstructorTestingTNewIncomingEventHandlers) *IncomingEventHandlers

NewIncomingEventHandlers creates a new instance of IncomingEventHandlers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IncomingEventHandlers) Create

func (_m *IncomingEventHandlers) Create(actor string, emulator string, interactiveSession types.InteractiveSession, transactionID common.TransactionID) error

Create provides a mock function with given fields: actor, emulator, interactiveSession, transactionID

func (*IncomingEventHandlers) Deactivate

func (_m *IncomingEventHandlers) Deactivate(actor string, emulator string, interactiveSession types.InteractiveSession, transactionID common.TransactionID) error

Deactivate provides a mock function with given fields: actor, emulator, interactiveSession, transactionID

type IncomingQueryHandlers

type IncomingQueryHandlers struct {
	mock.Mock
}

IncomingQueryHandlers is an autogenerated mock type for the IncomingQueryHandlers type

func NewIncomingQueryHandlers

func NewIncomingQueryHandlers(t mockConstructorTestingTNewIncomingQueryHandlers) *IncomingQueryHandlers

NewIncomingQueryHandlers creates a new instance of IncomingQueryHandlers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IncomingQueryHandlers) CheckPrerequisites

func (_m *IncomingQueryHandlers) CheckPrerequisites(protocol service.InteractiveSessionProtocol, instanceAddress string, instanceAdminUsername string) (bool, error)

CheckPrerequisites provides a mock function with given fields: protocol, instanceAddress, instanceAdminUsername

func (*IncomingQueryHandlers) Get

func (_m *IncomingQueryHandlers) Get(actor string, emulator string, interactiveSessionID common.ID) (types.InteractiveSession, error)

Get provides a mock function with given fields: actor, emulator, interactiveSessionID

func (*IncomingQueryHandlers) GetByInstanceAddress

func (_m *IncomingQueryHandlers) GetByInstanceAddress(actor string, emulator string, instanceAddress string) (types.InteractiveSession, error)

GetByInstanceAddress provides a mock function with given fields: actor, emulator, instanceAddress

func (*IncomingQueryHandlers) GetByInstanceID

func (_m *IncomingQueryHandlers) GetByInstanceID(actor string, emulator string, instanceID string) (types.InteractiveSession, error)

GetByInstanceID provides a mock function with given fields: actor, emulator, instanceID

func (*IncomingQueryHandlers) List

func (_m *IncomingQueryHandlers) List(actor string, emulator string) ([]types.InteractiveSession, error)

List provides a mock function with given fields: actor, emulator

type OutgoingEventPort

type OutgoingEventPort struct {
	mock.Mock
}

OutgoingEventPort is an autogenerated mock type for the OutgoingEventPort type

func NewOutgoingEventPort

func NewOutgoingEventPort(t mockConstructorTestingTNewOutgoingEventPort) *OutgoingEventPort

NewOutgoingEventPort creates a new instance of OutgoingEventPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OutgoingEventPort) CreateFailed

func (_m *OutgoingEventPort) CreateFailed(event service.InteractiveSessionModel)

CreateFailed provides a mock function with given fields: event

func (*OutgoingEventPort) CreateStarted

func (_m *OutgoingEventPort) CreateStarted(event service.InteractiveSessionModel)

CreateStarted provides a mock function with given fields: event

func (*OutgoingEventPort) Created

Created provides a mock function with given fields: event

func (*OutgoingEventPort) DeactivateFailed

func (_m *OutgoingEventPort) DeactivateFailed(event service.InteractiveSessionModel)

DeactivateFailed provides a mock function with given fields: event

func (*OutgoingEventPort) Deactivated

func (_m *OutgoingEventPort) Deactivated(event service.InteractiveSessionModel)

Deactivated provides a mock function with given fields: event

type PersistentStoragePort

type PersistentStoragePort struct {
	mock.Mock
}

PersistentStoragePort is an autogenerated mock type for the PersistentStoragePort type

func NewPersistentStoragePort

func NewPersistentStoragePort(t mockConstructorTestingTNewPersistentStoragePort) *PersistentStoragePort

NewPersistentStoragePort creates a new instance of PersistentStoragePort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PersistentStoragePort) Create

func (_m *PersistentStoragePort) Create(interactiveSession types.InteractiveSession) error

Create provides a mock function with given fields: interactiveSession

func (*PersistentStoragePort) DeactivateAllByInstanceID

func (_m *PersistentStoragePort) DeactivateAllByInstanceID(user string, instanceID string) (int64, error)

DeactivateAllByInstanceID provides a mock function with given fields: user, instanceID

func (*PersistentStoragePort) Get

func (_m *PersistentStoragePort) Get(user string, interactiveSessionID common.ID) (types.InteractiveSession, error)

Get provides a mock function with given fields: user, interactiveSessionID

func (*PersistentStoragePort) GetByInstanceAddress

func (_m *PersistentStoragePort) GetByInstanceAddress(user string, instanceAddress string) (types.InteractiveSession, error)

GetByInstanceAddress provides a mock function with given fields: user, instanceAddress

func (*PersistentStoragePort) GetByInstanceID

func (_m *PersistentStoragePort) GetByInstanceID(user string, instanceID string) (types.InteractiveSession, error)

GetByInstanceID provides a mock function with given fields: user, instanceID

func (*PersistentStoragePort) Init

func (_m *PersistentStoragePort) Init(config *types.Config)

Init provides a mock function with given fields: config

func (*PersistentStoragePort) List

List provides a mock function with given fields: user

func (*PersistentStoragePort) Update

func (_m *PersistentStoragePort) Update(interactiveSession types.InteractiveSession, updateFieldNames []string) error

Update provides a mock function with given fields: interactiveSession, updateFieldNames

type SessionSetupPort

type SessionSetupPort struct {
	mock.Mock
}

SessionSetupPort is an autogenerated mock type for the SessionSetupPort type

func NewSessionSetupPort

func NewSessionSetupPort(t mockConstructorTestingTNewSessionSetupPort) *SessionSetupPort

NewSessionSetupPort creates a new instance of SessionSetupPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SessionSetupPort) CheckPrerequisites

func (_m *SessionSetupPort) CheckPrerequisites(protocol service.InteractiveSessionProtocol, instanceAddress string, instanceAdminUsername string) (bool, error)

CheckPrerequisites provides a mock function with given fields: protocol, instanceAddress, instanceAdminUsername

func (*SessionSetupPort) Init

func (_m *SessionSetupPort) Init(config *types.Config)

Init provides a mock function with given fields: config

func (*SessionSetupPort) Setup

func (_m *SessionSetupPort) Setup(user string, cloudID string, protocol service.InteractiveSessionProtocol, instanceAddress string, instanceAdminUsername string) (string, error)

Setup provides a mock function with given fields: user, cloudID, protocol, instanceAddress, instanceAdminUsername

Jump to

Keyboard shortcuts

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