Documentation ¶
Overview ¶
Package mocks provides a mock implementation of the invitations repository.
Index ¶
- type Repository
- func (_m *Repository) Create(ctx context.Context, invitation invitations.Invitation) error
- func (_m *Repository) Delete(ctx context.Context, userID string, domainID string) error
- func (_m *Repository) Retrieve(ctx context.Context, userID string, domainID string) (invitations.Invitation, error)
- func (_m *Repository) RetrieveAll(ctx context.Context, page invitations.Page) (invitations.InvitationPage, error)
- func (_m *Repository) UpdateConfirmation(ctx context.Context, invitation invitations.Invitation) error
- func (_m *Repository) UpdateRejection(ctx context.Context, invitation invitations.Invitation) error
- func (_m *Repository) UpdateToken(ctx context.Context, invitation invitations.Invitation) error
- type Service
- func (_m *Service) AcceptInvitation(ctx context.Context, session authn.Session, domainID string) error
- func (_m *Service) DeleteInvitation(ctx context.Context, session authn.Session, userID string, domainID string) error
- func (_m *Service) ListInvitations(ctx context.Context, session authn.Session, page invitations.Page) (invitations.InvitationPage, error)
- func (_m *Service) RejectInvitation(ctx context.Context, session authn.Session, domainID string) error
- func (_m *Service) SendInvitation(ctx context.Context, session authn.Session, invitation invitations.Invitation) error
- func (_m *Service) ViewInvitation(ctx context.Context, session authn.Session, userID string, domainID string) (invitations.Invitation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) Create ¶
func (_m *Repository) Create(ctx context.Context, invitation invitations.Invitation) error
Create provides a mock function with given fields: ctx, invitation
func (*Repository) Delete ¶
Delete provides a mock function with given fields: ctx, userID, domainID
func (*Repository) Retrieve ¶
func (_m *Repository) Retrieve(ctx context.Context, userID string, domainID string) (invitations.Invitation, error)
Retrieve provides a mock function with given fields: ctx, userID, domainID
func (*Repository) RetrieveAll ¶
func (_m *Repository) RetrieveAll(ctx context.Context, page invitations.Page) (invitations.InvitationPage, error)
RetrieveAll provides a mock function with given fields: ctx, page
func (*Repository) UpdateConfirmation ¶
func (_m *Repository) UpdateConfirmation(ctx context.Context, invitation invitations.Invitation) error
UpdateConfirmation provides a mock function with given fields: ctx, invitation
func (*Repository) UpdateRejection ¶
func (_m *Repository) UpdateRejection(ctx context.Context, invitation invitations.Invitation) error
UpdateRejection provides a mock function with given fields: ctx, invitation
func (*Repository) UpdateToken ¶
func (_m *Repository) UpdateToken(ctx context.Context, invitation invitations.Invitation) error
UpdateToken provides a mock function with given fields: ctx, invitation
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) AcceptInvitation ¶
func (_m *Service) AcceptInvitation(ctx context.Context, session authn.Session, domainID string) error
AcceptInvitation provides a mock function with given fields: ctx, session, domainID
func (*Service) DeleteInvitation ¶
func (_m *Service) DeleteInvitation(ctx context.Context, session authn.Session, userID string, domainID string) error
DeleteInvitation provides a mock function with given fields: ctx, session, userID, domainID
func (*Service) ListInvitations ¶
func (_m *Service) ListInvitations(ctx context.Context, session authn.Session, page invitations.Page) (invitations.InvitationPage, error)
ListInvitations provides a mock function with given fields: ctx, session, page
func (*Service) RejectInvitation ¶
func (_m *Service) RejectInvitation(ctx context.Context, session authn.Session, domainID string) error
RejectInvitation provides a mock function with given fields: ctx, session, domainID
func (*Service) SendInvitation ¶
func (_m *Service) SendInvitation(ctx context.Context, session authn.Session, invitation invitations.Invitation) error
SendInvitation provides a mock function with given fields: ctx, session, invitation
func (*Service) ViewInvitation ¶
func (_m *Service) ViewInvitation(ctx context.Context, session authn.Session, userID string, domainID string) (invitations.Invitation, error)
ViewInvitation provides a mock function with given fields: ctx, session, userID, domainID