Documentation ¶
Index ¶
- type IncomingEventHandlers
- func (_m *IncomingEventHandlers) Create(actor string, emulator string, workspace types.Workspace, ...) error
- func (_m *IncomingEventHandlers) Delete(actor string, emulator string, workspace types.Workspace, ...) error
- func (_m *IncomingEventHandlers) Update(actor string, emulator string, workspace types.Workspace, ...) error
- type IncomingQueryHandlers
- type OutgoingEventPort
- func (_m *OutgoingEventPort) WorkspaceCreateFailedEvent(_a0 service.WorkspaceModel)
- func (_m *OutgoingEventPort) WorkspaceCreatedEvent(_a0 service.WorkspaceModel)
- func (_m *OutgoingEventPort) WorkspaceDeleteFailedEvent(_a0 service.WorkspaceModel)
- func (_m *OutgoingEventPort) WorkspaceDeletedEvent(_a0 service.WorkspaceModel)
- func (_m *OutgoingEventPort) WorkspaceUpdateFailedEvent(_a0 service.WorkspaceModel)
- func (_m *OutgoingEventPort) WorkspaceUpdatedEvent(_a0 service.WorkspaceModel)
- type PersistentStoragePort
- func (_m *PersistentStoragePort) Create(ctx context.Context, workspace types.Workspace) error
- func (_m *PersistentStoragePort) Delete(ctx context.Context, user string, workspaceID common.ID) error
- func (_m *PersistentStoragePort) Get(ctx context.Context, user string, workspaceID common.ID) (types.Workspace, error)
- func (_m *PersistentStoragePort) Init(config *types.Config) error
- func (_m *PersistentStoragePort) List(ctx context.Context, user string) ([]types.Workspace, error)
- func (_m *PersistentStoragePort) Update(ctx context.Context, workspace types.Workspace, updateFieldNames []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, workspace types.Workspace, transactionID common.TransactionID) error
Create provides a mock function with given fields: actor, emulator, workspace, transactionID
func (*IncomingEventHandlers) Delete ¶
func (_m *IncomingEventHandlers) Delete(actor string, emulator string, workspace types.Workspace, transactionID common.TransactionID) error
Delete provides a mock function with given fields: actor, emulator, workspace, transactionID
func (*IncomingEventHandlers) Update ¶
func (_m *IncomingEventHandlers) Update(actor string, emulator string, workspace types.Workspace, updateFieldNames []string, transactionID common.TransactionID) error
Update provides a mock function with given fields: actor, emulator, workspace, updateFieldNames, 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.
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) WorkspaceCreateFailedEvent ¶
func (_m *OutgoingEventPort) WorkspaceCreateFailedEvent(_a0 service.WorkspaceModel)
WorkspaceCreateFailedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) WorkspaceCreatedEvent ¶
func (_m *OutgoingEventPort) WorkspaceCreatedEvent(_a0 service.WorkspaceModel)
WorkspaceCreatedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) WorkspaceDeleteFailedEvent ¶
func (_m *OutgoingEventPort) WorkspaceDeleteFailedEvent(_a0 service.WorkspaceModel)
WorkspaceDeleteFailedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) WorkspaceDeletedEvent ¶
func (_m *OutgoingEventPort) WorkspaceDeletedEvent(_a0 service.WorkspaceModel)
WorkspaceDeletedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) WorkspaceUpdateFailedEvent ¶
func (_m *OutgoingEventPort) WorkspaceUpdateFailedEvent(_a0 service.WorkspaceModel)
WorkspaceUpdateFailedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) WorkspaceUpdatedEvent ¶
func (_m *OutgoingEventPort) WorkspaceUpdatedEvent(_a0 service.WorkspaceModel)
WorkspaceUpdatedEvent provides a mock function with given fields: _a0
type PersistentStoragePort ¶
PersistentStoragePort is an autogenerated mock type for the PersistentStoragePort type
func NewPersistentStoragePort ¶
func NewPersistentStoragePort(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*PersistentStoragePort) Create ¶
Create provides a mock function with given fields: ctx, workspace
func (*PersistentStoragePort) Delete ¶
func (_m *PersistentStoragePort) Delete(ctx context.Context, user string, workspaceID common.ID) error
Delete provides a mock function with given fields: ctx, user, workspaceID
func (*PersistentStoragePort) Get ¶
func (_m *PersistentStoragePort) Get(ctx context.Context, user string, workspaceID common.ID) (types.Workspace, error)
Get provides a mock function with given fields: ctx, user, workspaceID
func (*PersistentStoragePort) Init ¶
func (_m *PersistentStoragePort) Init(config *types.Config) error
Init provides a mock function with given fields: config