mocks

package
v0.0.0-...-dfaa8e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppIdentityProviderServiceInterface

type AppIdentityProviderServiceInterface struct {
	mock.Mock
}

AppIdentityProviderServiceInterface is an autogenerated mock type for the AppIdentityProviderServiceInterface type

func (*AppIdentityProviderServiceInterface) FindByType

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

func (*AppIdentityProviderServiceInterface) FindByTypeAndName

FindByTypeAndName provides a mock function with given fields: _a0, _a1, _a2

func (*AppIdentityProviderServiceInterface) Get

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

func (*AppIdentityProviderServiceInterface) GetAllTemplates

GetAllTemplates provides a mock function with given fields:

func (*AppIdentityProviderServiceInterface) GetAuthUrl

func (_m *AppIdentityProviderServiceInterface) GetAuthUrl(_a0 string, _a1 *models.AppIdentityProvider, _a2 interface{}) (string, error)

GetAuthUrl provides a mock function with given fields: _a0, _a1, _a2

func (*AppIdentityProviderServiceInterface) GetAvailableTemplates

func (_m *AppIdentityProviderServiceInterface) GetAvailableTemplates() []string

GetAvailableTemplates provides a mock function with given fields:

func (*AppIdentityProviderServiceInterface) GetSocialProfile

GetSocialProfile provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*AppIdentityProviderServiceInterface) GetTemplate

GetTemplate provides a mock function with given fields: _a0

func (*AppIdentityProviderServiceInterface) NormalizeSocialConnection

func (_m *AppIdentityProviderServiceInterface) NormalizeSocialConnection(_a0 *models.AppIdentityProvider) error

NormalizeSocialConnection provides a mock function with given fields: _a0

type ApplicationServiceInterface

type ApplicationServiceInterface struct {
	mock.Mock
}

ApplicationServiceInterface is an autogenerated mock type for the ApplicationServiceInterface type

func (*ApplicationServiceInterface) AddIdentityProvider

func (_m *ApplicationServiceInterface) AddIdentityProvider(_a0 *models.Application, _a1 *models.AppIdentityProvider) error

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

func (*ApplicationServiceInterface) Create

Create provides a mock function with given fields: _a0

func (*ApplicationServiceInterface) Get

Get provides a mock function with given fields: _a0

func (*ApplicationServiceInterface) LoadMfaConnection

func (_m *ApplicationServiceInterface) LoadMfaConnection(_a0 string) ([]*models.MfaConnection, error)

LoadMfaConnection provides a mock function with given fields: _a0

func (*ApplicationServiceInterface) LoadSocialSettings

func (_m *ApplicationServiceInterface) LoadSocialSettings() (*models.SocialSettings, error)

LoadSocialSettings provides a mock function with given fields:

func (*ApplicationServiceInterface) Update

Update provides a mock function with given fields: _a0

func (*ApplicationServiceInterface) UpdateIdentityProvider

func (_m *ApplicationServiceInterface) UpdateIdentityProvider(_a0 *models.Application, _a1 *models.AppIdentityProvider) error

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

type AuthLogServiceInterface

type AuthLogServiceInterface struct {
	mock.Mock
}

AuthLogServiceInterface is an autogenerated mock type for the AuthLogServiceInterface type

func (*AuthLogServiceInterface) Add

func (_m *AuthLogServiceInterface) Add(_a0 string, _a1 string, _a2 *models.User) error

Add provides a mock function with given fields: _a0, _a1, _a2

type HydraAdminApi

type HydraAdminApi struct {
	mock.Mock
}

HydraAdminApi is an autogenerated mock type for the HydraAdminApi type

func (*HydraAdminApi) AcceptConsentRequest

AcceptConsentRequest provides a mock function with given fields: _a0

func (*HydraAdminApi) AcceptLoginRequest

AcceptLoginRequest provides a mock function with given fields: _a0

func (*HydraAdminApi) CreateOAuth2Client

CreateOAuth2Client provides a mock function with given fields: _a0

func (*HydraAdminApi) GetConsentRequest

GetConsentRequest provides a mock function with given fields: _a0

func (*HydraAdminApi) GetLoginRequest

func (_m *HydraAdminApi) GetLoginRequest(_a0 *admin.GetLoginRequestParams) (*admin.GetLoginRequestOK, error)

GetLoginRequest provides a mock function with given fields: _a0

func (*HydraAdminApi) GetOAuth2Client

func (_m *HydraAdminApi) GetOAuth2Client(_a0 *admin.GetOAuth2ClientParams) (*admin.GetOAuth2ClientOK, error)

GetOAuth2Client provides a mock function with given fields: _a0

func (*HydraAdminApi) IntrospectOAuth2Token

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

func (*HydraAdminApi) UpdateOAuth2Client

UpdateOAuth2Client provides a mock function with given fields: _a0

type InternalRegistry

type InternalRegistry struct {
	mock.Mock
}

InternalRegistry is an autogenerated mock type for the InternalRegistry type

func (*InternalRegistry) ApplicationService

func (_m *InternalRegistry) ApplicationService() service.ApplicationServiceInterface

ApplicationService provides a mock function with given fields:

func (*InternalRegistry) HydraAdminApi

func (_m *InternalRegistry) HydraAdminApi() service.HydraAdminApi

HydraAdminApi provides a mock function with given fields:

func (*InternalRegistry) Mailer

Mailer provides a mock function with given fields:

func (*InternalRegistry) MfaService

func (_m *InternalRegistry) MfaService() service.MfaApiInterface

MfaService provides a mock function with given fields:

func (*InternalRegistry) MgoSession

func (_m *InternalRegistry) MgoSession() database.MgoSession

MgoSession provides a mock function with given fields:

func (*InternalRegistry) OneTimeTokenService

func (_m *InternalRegistry) OneTimeTokenService() service.OneTimeTokenServiceInterface

OneTimeTokenService provides a mock function with given fields:

func (*InternalRegistry) Watcher

func (_m *InternalRegistry) Watcher() persist.Watcher

Watcher provides a mock function with given fields:

type MailerInterface

type MailerInterface struct {
	mock.Mock
}

MailerInterface is an autogenerated mock type for the MailerInterface type

func (*MailerInterface) Send

func (_m *MailerInterface) Send(to string, subject string, body string) error

Send provides a mock function with given fields: to, subject, body

type MfaApiInterface

type MfaApiInterface struct {
	mock.Mock
}

MfaApiInterface is an autogenerated mock type for the MfaApiInterface type

func (*MfaApiInterface) Check

Check provides a mock function with given fields: ctx, in, opts

func (*MfaApiInterface) Create

Create provides a mock function with given fields: ctx, in, opts

type MfaServiceInterface

type MfaServiceInterface struct {
	mock.Mock
}

MfaServiceInterface is an autogenerated mock type for the MfaServiceInterface type

func (*MfaServiceInterface) Add

Add provides a mock function with given fields: _a0

func (*MfaServiceInterface) AddUserProvider

func (_m *MfaServiceInterface) AddUserProvider(_a0 *models.MfaUserProvider) error

AddUserProvider provides a mock function with given fields: _a0

func (*MfaServiceInterface) Get

Get provides a mock function with given fields: _a0

func (*MfaServiceInterface) GetUserProviders

func (_m *MfaServiceInterface) GetUserProviders(_a0 *models.User) ([]*models.MfaProvider, error)

GetUserProviders provides a mock function with given fields: _a0

func (*MfaServiceInterface) List

List provides a mock function with given fields: _a0

func (*MfaServiceInterface) RemoveUserProvider

func (_m *MfaServiceInterface) RemoveUserProvider(_a0 *models.MfaUserProvider) error

RemoveUserProvider provides a mock function with given fields: _a0

type MgoSession

type MgoSession struct {
	mock.Mock
}

MgoSession is an autogenerated mock type for the MgoSession type

func (*MgoSession) Close

func (_m *MgoSession) Close()

Close provides a mock function with given fields:

func (*MgoSession) Copy

func (_m *MgoSession) Copy() *mgo.Session

Copy provides a mock function with given fields:

func (*MgoSession) DB

func (_m *MgoSession) DB(name string) *mgo.Database

DB provides a mock function with given fields: name

type OneTimeTokenServiceInterface

type OneTimeTokenServiceInterface struct {
	mock.Mock
}

OneTimeTokenServiceInterface is an autogenerated mock type for the OneTimeTokenServiceInterface type

func (*OneTimeTokenServiceInterface) Create

func (_m *OneTimeTokenServiceInterface) Create(_a0 interface{}, _a1 *models.OneTimeTokenSettings) (*models.OneTimeToken, error)

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

func (*OneTimeTokenServiceInterface) Get

func (_m *OneTimeTokenServiceInterface) Get(_a0 string, _a1 interface{}) error

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

func (*OneTimeTokenServiceInterface) Use

func (_m *OneTimeTokenServiceInterface) Use(_a0 string, _a1 interface{}) error

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

type SessionService

type SessionService struct {
	mock.Mock
}

SessionService is an autogenerated mock type for the SessionService type

func (*SessionService) Get

func (_m *SessionService) Get(_a0 echo.Context, _a1 string) (interface{}, error)

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

func (*SessionService) Set

func (_m *SessionService) Set(_a0 echo.Context, _a1 string, _a2 interface{}) error

Set provides a mock function with given fields: _a0, _a1, _a2

type UserIdentityServiceInterface

type UserIdentityServiceInterface struct {
	mock.Mock
}

UserIdentityServiceInterface is an autogenerated mock type for the UserIdentityServiceInterface type

func (*UserIdentityServiceInterface) Create

Create provides a mock function with given fields: _a0

func (*UserIdentityServiceInterface) Get

Get provides a mock function with given fields: _a0, _a1, _a2

func (*UserIdentityServiceInterface) Update

Update provides a mock function with given fields: _a0

type UserServiceInterface

type UserServiceInterface struct {
	mock.Mock
}

UserServiceInterface is an autogenerated mock type for the UserServiceInterface type

func (*UserServiceInterface) Create

func (_m *UserServiceInterface) Create(_a0 *models.User) error

Create provides a mock function with given fields: _a0

func (*UserServiceInterface) Get

Get provides a mock function with given fields: _a0

func (*UserServiceInterface) Update

func (_m *UserServiceInterface) Update(_a0 *models.User) error

Update provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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