Documentation ¶
Index ¶
- type IncomingEventHandlers
- type IncomingQueryHandlers
- func (_m *IncomingQueryHandlers) CheckPrerequisites(protocol service.InteractiveSessionProtocol, instanceAddress string, ...) (bool, error)
- func (_m *IncomingQueryHandlers) Get(actor string, emulator string, interactiveSessionID common.ID) (types.InteractiveSession, error)
- func (_m *IncomingQueryHandlers) GetByInstanceAddress(actor string, emulator string, instanceAddress string) (types.InteractiveSession, error)
- func (_m *IncomingQueryHandlers) GetByInstanceID(actor string, emulator string, instanceID string) (types.InteractiveSession, error)
- func (_m *IncomingQueryHandlers) List(actor string, emulator string) ([]types.InteractiveSession, error)
- type OutgoingEventPort
- func (_m *OutgoingEventPort) CreateFailed(event service.InteractiveSessionModel)
- func (_m *OutgoingEventPort) CreateStarted(event service.InteractiveSessionModel)
- func (_m *OutgoingEventPort) Created(event service.InteractiveSessionModel)
- func (_m *OutgoingEventPort) DeactivateFailed(event service.InteractiveSessionModel)
- func (_m *OutgoingEventPort) Deactivated(event service.InteractiveSessionModel)
- type PersistentStoragePort
- func (_m *PersistentStoragePort) Create(interactiveSession types.InteractiveSession) error
- func (_m *PersistentStoragePort) DeactivateAllByInstanceID(user string, instanceID string) (int64, error)
- func (_m *PersistentStoragePort) Get(user string, interactiveSessionID common.ID) (types.InteractiveSession, error)
- func (_m *PersistentStoragePort) GetByInstanceAddress(user string, instanceAddress string) (types.InteractiveSession, error)
- func (_m *PersistentStoragePort) GetByInstanceID(user string, instanceID string) (types.InteractiveSession, error)
- func (_m *PersistentStoragePort) Init(config *types.Config)
- func (_m *PersistentStoragePort) List(user string) ([]types.InteractiveSession, error)
- func (_m *PersistentStoragePort) Update(interactiveSession types.InteractiveSession, updateFieldNames []string) error
- type SessionSetupPort
- func (_m *SessionSetupPort) CheckPrerequisites(protocol service.InteractiveSessionProtocol, instanceAddress string, ...) (bool, error)
- func (_m *SessionSetupPort) Init(config *types.Config)
- func (_m *SessionSetupPort) Setup(user string, cloudID string, protocol service.InteractiveSessionProtocol, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IncomingEventHandlers ¶
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 ¶
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 ¶
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 ¶
func (_m *OutgoingEventPort) Created(event service.InteractiveSessionModel)
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 ¶
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 ¶
func (_m *PersistentStoragePort) List(user string) ([]types.InteractiveSession, error)
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 ¶
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