Documentation ¶
Index ¶
- type IncomingEventHandlers
- func (_m *IncomingEventHandlers) BulkCreate(model service.TokenCreateBulkModel, port ports.OutgoingEventPort)
- func (_m *IncomingEventHandlers) Create(_a0 service.TokenCreateModel, _a1 ports.OutgoingEventPort)
- func (_m *IncomingEventHandlers) Delete(_a0 service.TokenModel, _a1 ports.OutgoingEventPort)
- func (_m *IncomingEventHandlers) Revoke(_a0 service.TokenModel, _a1 ports.OutgoingEventPort)
- func (_m *IncomingEventHandlers) Update(_a0 service.TokenModel, _a1 ports.OutgoingEventPort)
- type IncomingEventPort
- type IncomingQueryHandlers
- type IncomingQueryPort
- type OutgoingEventPort
- func (_m *OutgoingEventPort) TokenCreateFailedEvent(_a0 service.TokenCreateModel)
- func (_m *OutgoingEventPort) TokenCreatedEvent(_a0 service.TokenCreateModel)
- func (_m *OutgoingEventPort) TokenDeleteFailedEvent(_a0 service.TokenModel)
- func (_m *OutgoingEventPort) TokenDeletedEvent(_a0 service.TokenModel)
- func (_m *OutgoingEventPort) TokenRevokeFailedEvent(_a0 service.TokenModel)
- func (_m *OutgoingEventPort) TokenRevokedEvent(_a0 service.TokenModel)
- func (_m *OutgoingEventPort) TokenUpdateFailedEvent(_a0 service.TokenModel)
- func (_m *OutgoingEventPort) TokenUpdatedEvent(_a0 service.TokenModel)
- type PersistentStoragePort
- func (_m *PersistentStoragePort) Create(token types.Token) error
- func (_m *PersistentStoragePort) Delete(user string, tokenID common.ID) error
- func (_m *PersistentStoragePort) Get(tokenID common.ID) (types.Token, error)
- func (_m *PersistentStoragePort) Init(config *types.Config) error
- func (_m *PersistentStoragePort) List(user string) ([]types.Token, error)
- func (_m *PersistentStoragePort) Revoke(user string, tokenID common.ID) error
- func (_m *PersistentStoragePort) TokenAccessed(tokenID common.ID) error
- func (_m *PersistentStoragePort) Update(token types.Token, updateFieldNames []string, actor string) error
- type UserService
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*IncomingEventHandlers) BulkCreate ¶
func (_m *IncomingEventHandlers) BulkCreate(model service.TokenCreateBulkModel, port ports.OutgoingEventPort)
BulkCreate provides a mock function with given fields: model, port
func (*IncomingEventHandlers) Create ¶
func (_m *IncomingEventHandlers) Create(_a0 service.TokenCreateModel, _a1 ports.OutgoingEventPort)
Create provides a mock function with given fields: _a0, _a1
func (*IncomingEventHandlers) Delete ¶
func (_m *IncomingEventHandlers) Delete(_a0 service.TokenModel, _a1 ports.OutgoingEventPort)
Delete provides a mock function with given fields: _a0, _a1
func (*IncomingEventHandlers) Revoke ¶
func (_m *IncomingEventHandlers) Revoke(_a0 service.TokenModel, _a1 ports.OutgoingEventPort)
Revoke provides a mock function with given fields: _a0, _a1
func (*IncomingEventHandlers) Update ¶
func (_m *IncomingEventHandlers) Update(_a0 service.TokenModel, _a1 ports.OutgoingEventPort)
Update provides a mock function with given fields: _a0, _a1
type IncomingEventPort ¶
IncomingEventPort is an autogenerated mock type for the IncomingEventPort type
func NewIncomingEventPort ¶
func NewIncomingEventPort(t interface { mock.TestingT Cleanup(func()) }) *IncomingEventPort
NewIncomingEventPort creates a new instance of IncomingEventPort. 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 (*IncomingEventPort) SetHandlers ¶
func (_m *IncomingEventPort) SetHandlers(handlers ports.IncomingEventHandlers)
SetHandlers provides a mock function with given fields: handlers
func (*IncomingEventPort) Start ¶
func (_m *IncomingEventPort) Start(ctx context.Context, wg *sync.WaitGroup, handlers ports.IncomingEventHandlers) error
Start provides a mock function with given fields: ctx, wg, handlers
type IncomingQueryHandlers ¶
IncomingQueryHandlers is an autogenerated mock type for the IncomingQueryHandlers type
func NewIncomingQueryHandlers ¶
func NewIncomingQueryHandlers(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*IncomingQueryHandlers) Get ¶
func (_m *IncomingQueryHandlers) Get(_a0 service.TokenModel) service.TokenModel
Get provides a mock function with given fields: _a0
func (*IncomingQueryHandlers) List ¶
func (_m *IncomingQueryHandlers) List(session service.Session) service.TokenListModel
List provides a mock function with given fields: session
func (*IncomingQueryHandlers) ListTokenTypes ¶
func (_m *IncomingQueryHandlers) ListTokenTypes(session service.Session) service.TokenTypeListModel
ListTokenTypes provides a mock function with given fields: session
type IncomingQueryPort ¶
IncomingQueryPort is an autogenerated mock type for the IncomingQueryPort type
func NewIncomingQueryPort ¶
func NewIncomingQueryPort(t interface { mock.TestingT Cleanup(func()) }) *IncomingQueryPort
NewIncomingQueryPort creates a new instance of IncomingQueryPort. 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 (*IncomingQueryPort) SetHandlers ¶
func (_m *IncomingQueryPort) SetHandlers(handlers ports.IncomingQueryHandlers)
SetHandlers provides a mock function with given fields: handlers
func (*IncomingQueryPort) Start ¶
func (_m *IncomingQueryPort) Start(ctx context.Context, wg *sync.WaitGroup, handlers ports.IncomingQueryHandlers) error
Start provides a mock function with given fields: ctx, wg, handlers
type OutgoingEventPort ¶
OutgoingEventPort is an autogenerated mock type for the OutgoingEventPort type
func NewOutgoingEventPort ¶
func NewOutgoingEventPort(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*OutgoingEventPort) TokenCreateFailedEvent ¶
func (_m *OutgoingEventPort) TokenCreateFailedEvent(_a0 service.TokenCreateModel)
TokenCreateFailedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) TokenCreatedEvent ¶
func (_m *OutgoingEventPort) TokenCreatedEvent(_a0 service.TokenCreateModel)
TokenCreatedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) TokenDeleteFailedEvent ¶
func (_m *OutgoingEventPort) TokenDeleteFailedEvent(_a0 service.TokenModel)
TokenDeleteFailedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) TokenDeletedEvent ¶
func (_m *OutgoingEventPort) TokenDeletedEvent(_a0 service.TokenModel)
TokenDeletedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) TokenRevokeFailedEvent ¶
func (_m *OutgoingEventPort) TokenRevokeFailedEvent(_a0 service.TokenModel)
TokenRevokeFailedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) TokenRevokedEvent ¶
func (_m *OutgoingEventPort) TokenRevokedEvent(_a0 service.TokenModel)
TokenRevokedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) TokenUpdateFailedEvent ¶
func (_m *OutgoingEventPort) TokenUpdateFailedEvent(_a0 service.TokenModel)
TokenUpdateFailedEvent provides a mock function with given fields: _a0
func (*OutgoingEventPort) TokenUpdatedEvent ¶
func (_m *OutgoingEventPort) TokenUpdatedEvent(_a0 service.TokenModel)
TokenUpdatedEvent 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 ¶
func (_m *PersistentStoragePort) Create(token types.Token) error
Create provides a mock function with given fields: token
func (*PersistentStoragePort) Delete ¶
func (_m *PersistentStoragePort) Delete(user string, tokenID common.ID) error
Delete provides a mock function with given fields: user, tokenID
func (*PersistentStoragePort) Init ¶
func (_m *PersistentStoragePort) Init(config *types.Config) error
Init provides a mock function with given fields: config
func (*PersistentStoragePort) List ¶
func (_m *PersistentStoragePort) List(user string) ([]types.Token, error)
List provides a mock function with given fields: user
func (*PersistentStoragePort) Revoke ¶
func (_m *PersistentStoragePort) Revoke(user string, tokenID common.ID) error
Revoke provides a mock function with given fields: user, tokenID
func (*PersistentStoragePort) TokenAccessed ¶
func (_m *PersistentStoragePort) TokenAccessed(tokenID common.ID) error
TokenAccessed provides a mock function with given fields: tokenID
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t interface { mock.TestingT Cleanup(func()) }) *UserService
NewUserService creates a new instance of UserService. 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 (*UserService) CheckForAdmin ¶
func (_m *UserService) CheckForAdmin(actor service.Actor) (bool, error)
CheckForAdmin provides a mock function with given fields: actor