Back to godoc.org

Package mocks

v0.0.0-...-6d7babb
Latest Go to latest

The latest major version is .

Published: Apr 30, 2020 | License: Apache-2.0 | Module: github.com/ProtocolONE/auth1.protocol.one

Index

type AppIdentityProviderServiceInterface

type AppIdentityProviderServiceInterface struct {
	mock.Mock
}

AppIdentityProviderServiceInterface is an autogenerated mock type for the AppIdentityProviderServiceInterface type

func (*AppIdentityProviderServiceInterface) FindByType

func (_m *AppIdentityProviderServiceInterface) FindByType(_a0 *models.Application, _a1 string) []*models.AppIdentityProvider

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

func (*AppIdentityProviderServiceInterface) FindByTypeAndName

func (_m *AppIdentityProviderServiceInterface) FindByTypeAndName(_a0 *models.Application, _a1 string, _a2 string) *models.AppIdentityProvider

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

func (*AppIdentityProviderServiceInterface) Get

func (_m *AppIdentityProviderServiceInterface) Get(_a0 *models.Application, _a1 bson.ObjectId) *models.AppIdentityProvider

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

func (*AppIdentityProviderServiceInterface) GetAllTemplates

func (_m *AppIdentityProviderServiceInterface) GetAllTemplates() []*models.AppIdentityProvider

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

func (_m *AppIdentityProviderServiceInterface) GetSocialProfile(_a0 context.Context, _a1 string, _a2 string, _a3 *models.AppIdentityProvider) (*models.UserIdentitySocial, error)

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

func (*AppIdentityProviderServiceInterface) GetTemplate

func (_m *AppIdentityProviderServiceInterface) GetTemplate(_a0 string) (*models.AppIdentityProvider, error)

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

func (_m *ApplicationServiceInterface) Create(_a0 *models.Application) error

Create provides a mock function with given fields: _a0

func (*ApplicationServiceInterface) Get

func (_m *ApplicationServiceInterface) Get(_a0 bson.ObjectId) (*models.Application, error)

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

func (_m *ApplicationServiceInterface) Update(_a0 *models.Application) error

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

func (_m *HydraAdminApi) AcceptConsentRequest(_a0 *admin.AcceptConsentRequestParams) (*admin.AcceptConsentRequestOK, error)

AcceptConsentRequest provides a mock function with given fields: _a0

func (*HydraAdminApi) AcceptLoginRequest

func (_m *HydraAdminApi) AcceptLoginRequest(_a0 *admin.AcceptLoginRequestParams) (*admin.AcceptLoginRequestOK, error)

AcceptLoginRequest provides a mock function with given fields: _a0

func (*HydraAdminApi) CreateOAuth2Client

func (_m *HydraAdminApi) CreateOAuth2Client(_a0 *admin.CreateOAuth2ClientParams) (*admin.CreateOAuth2ClientCreated, error)

CreateOAuth2Client provides a mock function with given fields: _a0

func (*HydraAdminApi) GetConsentRequest

func (_m *HydraAdminApi) GetConsentRequest(_a0 *admin.GetConsentRequestParams) (*admin.GetConsentRequestOK, error)

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

func (_m *HydraAdminApi) IntrospectOAuth2Token(_a0 *admin.IntrospectOAuth2TokenParams, _a1 runtime.ClientAuthInfoWriter) (*admin.IntrospectOAuth2TokenOK, error)

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

func (*HydraAdminApi) UpdateOAuth2Client

func (_m *HydraAdminApi) UpdateOAuth2Client(_a0 *admin.UpdateOAuth2ClientParams) (*admin.UpdateOAuth2ClientOK, error)

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

func (_m *InternalRegistry) Mailer() service.MailerInterface

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

func (_m *MfaApiInterface) Check(ctx context.Context, in *proto.MfaCheckDataRequest, opts ...client.CallOption) (*proto.MfaCheckDataResponse, error)

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

func (*MfaApiInterface) Create

func (_m *MfaApiInterface) Create(ctx context.Context, in *proto.MfaCreateDataRequest, opts ...client.CallOption) (*proto.MfaCreateDataResponse, error)

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

func (_m *MfaServiceInterface) Add(_a0 *models.MfaProvider) error

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

func (_m *MfaServiceInterface) Get(_a0 bson.ObjectId) (*models.MfaProvider, error)

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

func (_m *MfaServiceInterface) List(_a0 bson.ObjectId) ([]*models.MfaProvider, error)

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

func (_m *UserIdentityServiceInterface) Create(_a0 *models.UserIdentity) error

Create provides a mock function with given fields: _a0

func (*UserIdentityServiceInterface) Get

func (_m *UserIdentityServiceInterface) Get(_a0 *models.Application, _a1 *models.AppIdentityProvider, _a2 string) (*models.UserIdentity, error)

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

func (*UserIdentityServiceInterface) Update

func (_m *UserIdentityServiceInterface) Update(_a0 *models.UserIdentity) error

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

func (_m *UserServiceInterface) Get(_a0 bson.ObjectId) (*models.User, error)

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier