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: 7 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 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

BulkCreate provides a mock function with given fields: model, port

func (*IncomingEventHandlers) Create

Create provides a mock function with given fields: _a0, _a1

func (*IncomingEventHandlers) Delete

Delete provides a mock function with given fields: _a0, _a1

func (*IncomingEventHandlers) Revoke

Revoke provides a mock function with given fields: _a0, _a1

func (*IncomingEventHandlers) Update

Update provides a mock function with given fields: _a0, _a1

type IncomingEventPort

type IncomingEventPort struct {
	mock.Mock
}

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

Start provides a mock function with given fields: ctx, wg, handlers

type IncomingQueryHandlers

type IncomingQueryHandlers struct {
	mock.Mock
}

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

Get provides a mock function with given fields: _a0

func (*IncomingQueryHandlers) List

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

type IncomingQueryPort struct {
	mock.Mock
}

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

Start provides a mock function with given fields: ctx, wg, handlers

type OutgoingEventPort

type OutgoingEventPort struct {
	mock.Mock
}

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

type PersistentStoragePort struct {
	mock.Mock
}

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) Get

func (_m *PersistentStoragePort) Get(tokenID common.ID) (types.Token, error)

Get provides a mock function with given fields: 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

func (*PersistentStoragePort) Update

func (_m *PersistentStoragePort) Update(token types.Token, updateFieldNames []string, actor string) error

Update provides a mock function with given fields: token, updateFieldNames, actor

type UserService

type UserService struct {
	mock.Mock
}

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

func (*UserService) Init

func (_m *UserService) Init(config *types.Config) error

Init provides a mock function with given fields: config

Jump to

Keyboard shortcuts

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