mocks

package
v4.35.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

type MockAPI struct {
	// contains filtered or unexported fields
}

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) AuthCall added in v4.33.0

func (m *MockAPI) AuthCall(arg0 *middlewares.AutheliaCtx, arg1 url.Values) (*duo.AuthResponse, error)

AuthCall mocks base method.

func (*MockAPI) Call

func (m *MockAPI) Call(arg0 *middlewares.AutheliaCtx, arg1 url.Values, arg2, arg3 string) (*duo.Response, error)

Call mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPI) PreAuthCall added in v4.33.0

func (m *MockAPI) PreAuthCall(arg0 *middlewares.AutheliaCtx, arg1 url.Values) (*duo.PreAuthResponse, error)

PreAuthCall mocks base method.

type MockAPIMockRecorder

type MockAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) AuthCall added in v4.33.0

func (mr *MockAPIMockRecorder) AuthCall(arg0, arg1 interface{}) *gomock.Call

AuthCall indicates an expected call of AuthCall.

func (*MockAPIMockRecorder) Call

func (mr *MockAPIMockRecorder) Call(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Call indicates an expected call of Call.

func (*MockAPIMockRecorder) PreAuthCall added in v4.33.0

func (mr *MockAPIMockRecorder) PreAuthCall(arg0, arg1 interface{}) *gomock.Call

PreAuthCall indicates an expected call of PreAuthCall.

type MockAutheliaCtx

type MockAutheliaCtx struct {
	// Logger hook.
	Hook *test.Hook
	Ctx  *middlewares.AutheliaCtx
	Ctrl *gomock.Controller

	// Providers.
	UserProviderMock *MockUserProvider
	StorageMock      *MockStorage
	NotifierMock     *MockNotifier
	TOTPMock         *MockTOTP

	UserSession *session.UserSession

	Clock TestingClock
}

MockAutheliaCtx a mock of AutheliaCtx.

func NewMockAutheliaCtx

func NewMockAutheliaCtx(t *testing.T) *MockAutheliaCtx

NewMockAutheliaCtx create an instance of AutheliaCtx mock.

func NewMockAutheliaCtxWithUserSession

func NewMockAutheliaCtxWithUserSession(t *testing.T, userSession session.UserSession) *MockAutheliaCtx

NewMockAutheliaCtxWithUserSession create an instance of AutheliaCtx mock with predefined user session.

func (*MockAutheliaCtx) Assert200KO

func (m *MockAutheliaCtx) Assert200KO(t *testing.T, message string)

Assert200KO assert an error response from the service.

func (*MockAutheliaCtx) Assert200OK

func (m *MockAutheliaCtx) Assert200OK(t *testing.T, data interface{})

Assert200OK assert a successful response from the service.

func (*MockAutheliaCtx) Assert401KO

func (m *MockAutheliaCtx) Assert401KO(t *testing.T, message string)

Assert401KO assert an error response from the service.

func (*MockAutheliaCtx) Close

func (m *MockAutheliaCtx) Close()

Close close the mock.

func (*MockAutheliaCtx) GetResponseData

func (m *MockAutheliaCtx) GetResponseData(t *testing.T, data interface{})

GetResponseData retrieves a response from the service.

func (*MockAutheliaCtx) GetResponseError added in v4.33.0

func (m *MockAutheliaCtx) GetResponseError(t *testing.T) (errResponse middlewares.ErrorResponse)

GetResponseError retrieves an error response from the service.

func (*MockAutheliaCtx) SetRequestBody

func (m *MockAutheliaCtx) SetRequestBody(t *testing.T, body interface{})

SetRequestBody set the request body from a struct with json tags.

type MockNotifier

type MockNotifier struct {
	// contains filtered or unexported fields
}

MockNotifier is a mock of Notifier interface.

func NewMockNotifier

func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier

NewMockNotifier creates a new mock instance.

func (*MockNotifier) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNotifier) Send

func (m *MockNotifier) Send(arg0, arg1, arg2, arg3 string) error

Send mocks base method.

func (*MockNotifier) StartupCheck

func (m *MockNotifier) StartupCheck() error

StartupCheck mocks base method.

type MockNotifierMockRecorder

type MockNotifierMockRecorder struct {
	// contains filtered or unexported fields
}

MockNotifierMockRecorder is the mock recorder for MockNotifier.

func (*MockNotifierMockRecorder) Send

func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockNotifierMockRecorder) StartupCheck

func (mr *MockNotifierMockRecorder) StartupCheck() *gomock.Call

StartupCheck indicates an expected call of StartupCheck.

type MockStorage added in v4.33.0

type MockStorage struct {
	// contains filtered or unexported fields
}

MockStorage is a mock of Provider interface.

func NewMockStorage added in v4.33.0

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) AppendAuthenticationLog added in v4.33.0

func (m *MockStorage) AppendAuthenticationLog(arg0 context.Context, arg1 model.AuthenticationAttempt) error

AppendAuthenticationLog mocks base method.

func (*MockStorage) BeginTX added in v4.35.0

func (m *MockStorage) BeginTX(arg0 context.Context) (context.Context, error)

BeginTX mocks base method.

func (*MockStorage) Close added in v4.33.0

func (m *MockStorage) Close() error

Close mocks base method.

func (*MockStorage) Commit added in v4.35.0

func (m *MockStorage) Commit(arg0 context.Context) error

Commit mocks base method.

func (*MockStorage) ConsumeIdentityVerification added in v4.33.0

func (m *MockStorage) ConsumeIdentityVerification(arg0 context.Context, arg1 string, arg2 model.NullIP) error

ConsumeIdentityVerification mocks base method.

func (*MockStorage) DeactivateOAuth2Session added in v4.35.0

func (m *MockStorage) DeactivateOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error

DeactivateOAuth2Session mocks base method.

func (*MockStorage) DeactivateOAuth2SessionByRequestID added in v4.35.0

func (m *MockStorage) DeactivateOAuth2SessionByRequestID(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error

DeactivateOAuth2SessionByRequestID mocks base method.

func (*MockStorage) DeletePreferredDuoDevice added in v4.33.0

func (m *MockStorage) DeletePreferredDuoDevice(arg0 context.Context, arg1 string) error

DeletePreferredDuoDevice mocks base method.

func (*MockStorage) DeleteTOTPConfiguration added in v4.33.0

func (m *MockStorage) DeleteTOTPConfiguration(arg0 context.Context, arg1 string) error

DeleteTOTPConfiguration mocks base method.

func (*MockStorage) EXPECT added in v4.33.0

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorage) FindIdentityVerification added in v4.33.0

func (m *MockStorage) FindIdentityVerification(arg0 context.Context, arg1 string) (bool, error)

FindIdentityVerification mocks base method.

func (*MockStorage) LoadAuthenticationLogs added in v4.33.0

func (m *MockStorage) LoadAuthenticationLogs(arg0 context.Context, arg1 string, arg2 time.Time, arg3, arg4 int) ([]model.AuthenticationAttempt, error)

LoadAuthenticationLogs mocks base method.

func (*MockStorage) LoadOAuth2BlacklistedJTI added in v4.35.0

func (m *MockStorage) LoadOAuth2BlacklistedJTI(arg0 context.Context, arg1 string) (*model.OAuth2BlacklistedJTI, error)

LoadOAuth2BlacklistedJTI mocks base method.

func (*MockStorage) LoadOAuth2ConsentSessionByChallengeID added in v4.35.0

func (m *MockStorage) LoadOAuth2ConsentSessionByChallengeID(arg0 context.Context, arg1 uuid.UUID) (*model.OAuth2ConsentSession, error)

LoadOAuth2ConsentSessionByChallengeID mocks base method.

func (*MockStorage) LoadOAuth2ConsentSessionsPreConfigured added in v4.35.0

func (m *MockStorage) LoadOAuth2ConsentSessionsPreConfigured(arg0 context.Context, arg1 string, arg2 uuid.UUID) (*storage.ConsentSessionRows, error)

LoadOAuth2ConsentSessionsPreConfigured mocks base method.

func (*MockStorage) LoadOAuth2Session added in v4.35.0

func (m *MockStorage) LoadOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) (*model.OAuth2Session, error)

LoadOAuth2Session mocks base method.

func (*MockStorage) LoadPreferred2FAMethod added in v4.33.0

func (m *MockStorage) LoadPreferred2FAMethod(arg0 context.Context, arg1 string) (string, error)

LoadPreferred2FAMethod mocks base method.

func (*MockStorage) LoadPreferredDuoDevice added in v4.33.0

func (m *MockStorage) LoadPreferredDuoDevice(arg0 context.Context, arg1 string) (*model.DuoDevice, error)

LoadPreferredDuoDevice mocks base method.

func (*MockStorage) LoadTOTPConfiguration added in v4.33.0

func (m *MockStorage) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (*model.TOTPConfiguration, error)

LoadTOTPConfiguration mocks base method.

func (*MockStorage) LoadTOTPConfigurations added in v4.33.0

func (m *MockStorage) LoadTOTPConfigurations(arg0 context.Context, arg1, arg2 int) ([]model.TOTPConfiguration, error)

LoadTOTPConfigurations mocks base method.

func (*MockStorage) LoadUserInfo added in v4.33.0

func (m *MockStorage) LoadUserInfo(arg0 context.Context, arg1 string) (model.UserInfo, error)

LoadUserInfo mocks base method.

func (*MockStorage) LoadUserOpaqueIdentifier added in v4.35.0

func (m *MockStorage) LoadUserOpaqueIdentifier(arg0 context.Context, arg1 uuid.UUID) (*model.UserOpaqueIdentifier, error)

LoadUserOpaqueIdentifier mocks base method.

func (*MockStorage) LoadUserOpaqueIdentifierBySignature added in v4.35.0

func (m *MockStorage) LoadUserOpaqueIdentifierBySignature(arg0 context.Context, arg1, arg2, arg3 string) (*model.UserOpaqueIdentifier, error)

LoadUserOpaqueIdentifierBySignature mocks base method.

func (*MockStorage) LoadUserOpaqueIdentifiers added in v4.35.0

func (m *MockStorage) LoadUserOpaqueIdentifiers(arg0 context.Context) ([]model.UserOpaqueIdentifier, error)

LoadUserOpaqueIdentifiers mocks base method.

func (*MockStorage) LoadWebauthnDevices added in v4.34.0

func (m *MockStorage) LoadWebauthnDevices(arg0 context.Context, arg1, arg2 int) ([]model.WebauthnDevice, error)

LoadWebauthnDevices mocks base method.

func (*MockStorage) LoadWebauthnDevicesByUsername added in v4.34.0

func (m *MockStorage) LoadWebauthnDevicesByUsername(arg0 context.Context, arg1 string) ([]model.WebauthnDevice, error)

LoadWebauthnDevicesByUsername mocks base method.

func (*MockStorage) RevokeOAuth2Session added in v4.35.0

func (m *MockStorage) RevokeOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error

RevokeOAuth2Session mocks base method.

func (*MockStorage) RevokeOAuth2SessionByRequestID added in v4.35.0

func (m *MockStorage) RevokeOAuth2SessionByRequestID(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 string) error

RevokeOAuth2SessionByRequestID mocks base method.

func (*MockStorage) Rollback added in v4.35.0

func (m *MockStorage) Rollback(arg0 context.Context) error

Rollback mocks base method.

func (*MockStorage) SaveIdentityVerification added in v4.33.0

func (m *MockStorage) SaveIdentityVerification(arg0 context.Context, arg1 model.IdentityVerification) error

SaveIdentityVerification mocks base method.

func (*MockStorage) SaveOAuth2BlacklistedJTI added in v4.35.0

func (m *MockStorage) SaveOAuth2BlacklistedJTI(arg0 context.Context, arg1 model.OAuth2BlacklistedJTI) error

SaveOAuth2BlacklistedJTI mocks base method.

func (*MockStorage) SaveOAuth2ConsentSession added in v4.35.0

func (m *MockStorage) SaveOAuth2ConsentSession(arg0 context.Context, arg1 model.OAuth2ConsentSession) error

SaveOAuth2ConsentSession mocks base method.

func (*MockStorage) SaveOAuth2ConsentSessionGranted added in v4.35.0

func (m *MockStorage) SaveOAuth2ConsentSessionGranted(arg0 context.Context, arg1 int) error

SaveOAuth2ConsentSessionGranted mocks base method.

func (*MockStorage) SaveOAuth2ConsentSessionResponse added in v4.35.0

func (m *MockStorage) SaveOAuth2ConsentSessionResponse(arg0 context.Context, arg1 model.OAuth2ConsentSession, arg2 bool) error

SaveOAuth2ConsentSessionResponse mocks base method.

func (*MockStorage) SaveOAuth2Session added in v4.35.0

func (m *MockStorage) SaveOAuth2Session(arg0 context.Context, arg1 storage.OAuth2SessionType, arg2 model.OAuth2Session) error

SaveOAuth2Session mocks base method.

func (*MockStorage) SavePreferred2FAMethod added in v4.33.0

func (m *MockStorage) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 string) error

SavePreferred2FAMethod mocks base method.

func (*MockStorage) SavePreferredDuoDevice added in v4.33.0

func (m *MockStorage) SavePreferredDuoDevice(arg0 context.Context, arg1 model.DuoDevice) error

SavePreferredDuoDevice mocks base method.

func (*MockStorage) SaveTOTPConfiguration added in v4.33.0

func (m *MockStorage) SaveTOTPConfiguration(arg0 context.Context, arg1 model.TOTPConfiguration) error

SaveTOTPConfiguration mocks base method.

func (*MockStorage) SaveUserOpaqueIdentifier added in v4.35.0

func (m *MockStorage) SaveUserOpaqueIdentifier(arg0 context.Context, arg1 model.UserOpaqueIdentifier) error

SaveUserOpaqueIdentifier mocks base method.

func (*MockStorage) SaveWebauthnDevice added in v4.34.0

func (m *MockStorage) SaveWebauthnDevice(arg0 context.Context, arg1 model.WebauthnDevice) error

SaveWebauthnDevice mocks base method.

func (*MockStorage) SchemaEncryptionChangeKey added in v4.33.0

func (m *MockStorage) SchemaEncryptionChangeKey(arg0 context.Context, arg1 string) error

SchemaEncryptionChangeKey mocks base method.

func (*MockStorage) SchemaEncryptionCheckKey added in v4.33.0

func (m *MockStorage) SchemaEncryptionCheckKey(arg0 context.Context, arg1 bool) error

SchemaEncryptionCheckKey mocks base method.

func (*MockStorage) SchemaLatestVersion added in v4.33.0

func (m *MockStorage) SchemaLatestVersion() (int, error)

SchemaLatestVersion mocks base method.

func (*MockStorage) SchemaMigrate added in v4.33.0

func (m *MockStorage) SchemaMigrate(arg0 context.Context, arg1 bool, arg2 int) error

SchemaMigrate mocks base method.

func (*MockStorage) SchemaMigrationHistory added in v4.33.0

func (m *MockStorage) SchemaMigrationHistory(arg0 context.Context) ([]model.Migration, error)

SchemaMigrationHistory mocks base method.

func (*MockStorage) SchemaMigrationsDown added in v4.33.0

func (m *MockStorage) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]model.SchemaMigration, error)

SchemaMigrationsDown mocks base method.

func (*MockStorage) SchemaMigrationsUp added in v4.33.0

func (m *MockStorage) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]model.SchemaMigration, error)

SchemaMigrationsUp mocks base method.

func (*MockStorage) SchemaTables added in v4.33.0

func (m *MockStorage) SchemaTables(arg0 context.Context) ([]string, error)

SchemaTables mocks base method.

func (*MockStorage) SchemaVersion added in v4.33.0

func (m *MockStorage) SchemaVersion(arg0 context.Context) (int, error)

SchemaVersion mocks base method.

func (*MockStorage) StartupCheck added in v4.33.0

func (m *MockStorage) StartupCheck() error

StartupCheck mocks base method.

func (*MockStorage) UpdateTOTPConfigurationSignIn added in v4.34.0

func (m *MockStorage) UpdateTOTPConfigurationSignIn(arg0 context.Context, arg1 int, arg2 *time.Time) error

UpdateTOTPConfigurationSignIn mocks base method.

func (*MockStorage) UpdateWebauthnDeviceSignIn added in v4.34.0

func (m *MockStorage) UpdateWebauthnDeviceSignIn(arg0 context.Context, arg1 int, arg2 string, arg3 *time.Time, arg4 uint32, arg5 bool) error

UpdateWebauthnDeviceSignIn mocks base method.

type MockStorageMockRecorder added in v4.33.0

type MockStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) AppendAuthenticationLog added in v4.33.0

func (mr *MockStorageMockRecorder) AppendAuthenticationLog(arg0, arg1 interface{}) *gomock.Call

AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog.

func (*MockStorageMockRecorder) BeginTX added in v4.35.0

func (mr *MockStorageMockRecorder) BeginTX(arg0 interface{}) *gomock.Call

BeginTX indicates an expected call of BeginTX.

func (*MockStorageMockRecorder) Close added in v4.33.0

func (mr *MockStorageMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockStorageMockRecorder) Commit added in v4.35.0

func (mr *MockStorageMockRecorder) Commit(arg0 interface{}) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockStorageMockRecorder) ConsumeIdentityVerification added in v4.33.0

func (mr *MockStorageMockRecorder) ConsumeIdentityVerification(arg0, arg1, arg2 interface{}) *gomock.Call

ConsumeIdentityVerification indicates an expected call of ConsumeIdentityVerification.

func (*MockStorageMockRecorder) DeactivateOAuth2Session added in v4.35.0

func (mr *MockStorageMockRecorder) DeactivateOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call

DeactivateOAuth2Session indicates an expected call of DeactivateOAuth2Session.

func (*MockStorageMockRecorder) DeactivateOAuth2SessionByRequestID added in v4.35.0

func (mr *MockStorageMockRecorder) DeactivateOAuth2SessionByRequestID(arg0, arg1, arg2 interface{}) *gomock.Call

DeactivateOAuth2SessionByRequestID indicates an expected call of DeactivateOAuth2SessionByRequestID.

func (*MockStorageMockRecorder) DeletePreferredDuoDevice added in v4.33.0

func (mr *MockStorageMockRecorder) DeletePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call

DeletePreferredDuoDevice indicates an expected call of DeletePreferredDuoDevice.

func (*MockStorageMockRecorder) DeleteTOTPConfiguration added in v4.33.0

func (mr *MockStorageMockRecorder) DeleteTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call

DeleteTOTPConfiguration indicates an expected call of DeleteTOTPConfiguration.

func (*MockStorageMockRecorder) FindIdentityVerification added in v4.33.0

func (mr *MockStorageMockRecorder) FindIdentityVerification(arg0, arg1 interface{}) *gomock.Call

FindIdentityVerification indicates an expected call of FindIdentityVerification.

func (*MockStorageMockRecorder) LoadAuthenticationLogs added in v4.33.0

func (mr *MockStorageMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

LoadAuthenticationLogs indicates an expected call of LoadAuthenticationLogs.

func (*MockStorageMockRecorder) LoadOAuth2BlacklistedJTI added in v4.35.0

func (mr *MockStorageMockRecorder) LoadOAuth2BlacklistedJTI(arg0, arg1 interface{}) *gomock.Call

LoadOAuth2BlacklistedJTI indicates an expected call of LoadOAuth2BlacklistedJTI.

func (*MockStorageMockRecorder) LoadOAuth2ConsentSessionByChallengeID added in v4.35.0

func (mr *MockStorageMockRecorder) LoadOAuth2ConsentSessionByChallengeID(arg0, arg1 interface{}) *gomock.Call

LoadOAuth2ConsentSessionByChallengeID indicates an expected call of LoadOAuth2ConsentSessionByChallengeID.

func (*MockStorageMockRecorder) LoadOAuth2ConsentSessionsPreConfigured added in v4.35.0

func (mr *MockStorageMockRecorder) LoadOAuth2ConsentSessionsPreConfigured(arg0, arg1, arg2 interface{}) *gomock.Call

LoadOAuth2ConsentSessionsPreConfigured indicates an expected call of LoadOAuth2ConsentSessionsPreConfigured.

func (*MockStorageMockRecorder) LoadOAuth2Session added in v4.35.0

func (mr *MockStorageMockRecorder) LoadOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call

LoadOAuth2Session indicates an expected call of LoadOAuth2Session.

func (*MockStorageMockRecorder) LoadPreferred2FAMethod added in v4.33.0

func (mr *MockStorageMockRecorder) LoadPreferred2FAMethod(arg0, arg1 interface{}) *gomock.Call

LoadPreferred2FAMethod indicates an expected call of LoadPreferred2FAMethod.

func (*MockStorageMockRecorder) LoadPreferredDuoDevice added in v4.33.0

func (mr *MockStorageMockRecorder) LoadPreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call

LoadPreferredDuoDevice indicates an expected call of LoadPreferredDuoDevice.

func (*MockStorageMockRecorder) LoadTOTPConfiguration added in v4.33.0

func (mr *MockStorageMockRecorder) LoadTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call

LoadTOTPConfiguration indicates an expected call of LoadTOTPConfiguration.

func (*MockStorageMockRecorder) LoadTOTPConfigurations added in v4.33.0

func (mr *MockStorageMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 interface{}) *gomock.Call

LoadTOTPConfigurations indicates an expected call of LoadTOTPConfigurations.

func (*MockStorageMockRecorder) LoadUserInfo added in v4.33.0

func (mr *MockStorageMockRecorder) LoadUserInfo(arg0, arg1 interface{}) *gomock.Call

LoadUserInfo indicates an expected call of LoadUserInfo.

func (*MockStorageMockRecorder) LoadUserOpaqueIdentifier added in v4.35.0

func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifier(arg0, arg1 interface{}) *gomock.Call

LoadUserOpaqueIdentifier indicates an expected call of LoadUserOpaqueIdentifier.

func (*MockStorageMockRecorder) LoadUserOpaqueIdentifierBySignature added in v4.35.0

func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifierBySignature(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

LoadUserOpaqueIdentifierBySignature indicates an expected call of LoadUserOpaqueIdentifierBySignature.

func (*MockStorageMockRecorder) LoadUserOpaqueIdentifiers added in v4.35.0

func (mr *MockStorageMockRecorder) LoadUserOpaqueIdentifiers(arg0 interface{}) *gomock.Call

LoadUserOpaqueIdentifiers indicates an expected call of LoadUserOpaqueIdentifiers.

func (*MockStorageMockRecorder) LoadWebauthnDevices added in v4.34.0

func (mr *MockStorageMockRecorder) LoadWebauthnDevices(arg0, arg1, arg2 interface{}) *gomock.Call

LoadWebauthnDevices indicates an expected call of LoadWebauthnDevices.

func (*MockStorageMockRecorder) LoadWebauthnDevicesByUsername added in v4.34.0

func (mr *MockStorageMockRecorder) LoadWebauthnDevicesByUsername(arg0, arg1 interface{}) *gomock.Call

LoadWebauthnDevicesByUsername indicates an expected call of LoadWebauthnDevicesByUsername.

func (*MockStorageMockRecorder) RevokeOAuth2Session added in v4.35.0

func (mr *MockStorageMockRecorder) RevokeOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call

RevokeOAuth2Session indicates an expected call of RevokeOAuth2Session.

func (*MockStorageMockRecorder) RevokeOAuth2SessionByRequestID added in v4.35.0

func (mr *MockStorageMockRecorder) RevokeOAuth2SessionByRequestID(arg0, arg1, arg2 interface{}) *gomock.Call

RevokeOAuth2SessionByRequestID indicates an expected call of RevokeOAuth2SessionByRequestID.

func (*MockStorageMockRecorder) Rollback added in v4.35.0

func (mr *MockStorageMockRecorder) Rollback(arg0 interface{}) *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockStorageMockRecorder) SaveIdentityVerification added in v4.33.0

func (mr *MockStorageMockRecorder) SaveIdentityVerification(arg0, arg1 interface{}) *gomock.Call

SaveIdentityVerification indicates an expected call of SaveIdentityVerification.

func (*MockStorageMockRecorder) SaveOAuth2BlacklistedJTI added in v4.35.0

func (mr *MockStorageMockRecorder) SaveOAuth2BlacklistedJTI(arg0, arg1 interface{}) *gomock.Call

SaveOAuth2BlacklistedJTI indicates an expected call of SaveOAuth2BlacklistedJTI.

func (*MockStorageMockRecorder) SaveOAuth2ConsentSession added in v4.35.0

func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSession(arg0, arg1 interface{}) *gomock.Call

SaveOAuth2ConsentSession indicates an expected call of SaveOAuth2ConsentSession.

func (*MockStorageMockRecorder) SaveOAuth2ConsentSessionGranted added in v4.35.0

func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionGranted(arg0, arg1 interface{}) *gomock.Call

SaveOAuth2ConsentSessionGranted indicates an expected call of SaveOAuth2ConsentSessionGranted.

func (*MockStorageMockRecorder) SaveOAuth2ConsentSessionResponse added in v4.35.0

func (mr *MockStorageMockRecorder) SaveOAuth2ConsentSessionResponse(arg0, arg1, arg2 interface{}) *gomock.Call

SaveOAuth2ConsentSessionResponse indicates an expected call of SaveOAuth2ConsentSessionResponse.

func (*MockStorageMockRecorder) SaveOAuth2Session added in v4.35.0

func (mr *MockStorageMockRecorder) SaveOAuth2Session(arg0, arg1, arg2 interface{}) *gomock.Call

SaveOAuth2Session indicates an expected call of SaveOAuth2Session.

func (*MockStorageMockRecorder) SavePreferred2FAMethod added in v4.33.0

func (mr *MockStorageMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 interface{}) *gomock.Call

SavePreferred2FAMethod indicates an expected call of SavePreferred2FAMethod.

func (*MockStorageMockRecorder) SavePreferredDuoDevice added in v4.33.0

func (mr *MockStorageMockRecorder) SavePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call

SavePreferredDuoDevice indicates an expected call of SavePreferredDuoDevice.

func (*MockStorageMockRecorder) SaveTOTPConfiguration added in v4.33.0

func (mr *MockStorageMockRecorder) SaveTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call

SaveTOTPConfiguration indicates an expected call of SaveTOTPConfiguration.

func (*MockStorageMockRecorder) SaveUserOpaqueIdentifier added in v4.35.0

func (mr *MockStorageMockRecorder) SaveUserOpaqueIdentifier(arg0, arg1 interface{}) *gomock.Call

SaveUserOpaqueIdentifier indicates an expected call of SaveUserOpaqueIdentifier.

func (*MockStorageMockRecorder) SaveWebauthnDevice added in v4.34.0

func (mr *MockStorageMockRecorder) SaveWebauthnDevice(arg0, arg1 interface{}) *gomock.Call

SaveWebauthnDevice indicates an expected call of SaveWebauthnDevice.

func (*MockStorageMockRecorder) SchemaEncryptionChangeKey added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 interface{}) *gomock.Call

SchemaEncryptionChangeKey indicates an expected call of SchemaEncryptionChangeKey.

func (*MockStorageMockRecorder) SchemaEncryptionCheckKey added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 interface{}) *gomock.Call

SchemaEncryptionCheckKey indicates an expected call of SchemaEncryptionCheckKey.

func (*MockStorageMockRecorder) SchemaLatestVersion added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaLatestVersion() *gomock.Call

SchemaLatestVersion indicates an expected call of SchemaLatestVersion.

func (*MockStorageMockRecorder) SchemaMigrate added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrate(arg0, arg1, arg2 interface{}) *gomock.Call

SchemaMigrate indicates an expected call of SchemaMigrate.

func (*MockStorageMockRecorder) SchemaMigrationHistory added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrationHistory(arg0 interface{}) *gomock.Call

SchemaMigrationHistory indicates an expected call of SchemaMigrationHistory.

func (*MockStorageMockRecorder) SchemaMigrationsDown added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrationsDown(arg0, arg1 interface{}) *gomock.Call

SchemaMigrationsDown indicates an expected call of SchemaMigrationsDown.

func (*MockStorageMockRecorder) SchemaMigrationsUp added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrationsUp(arg0, arg1 interface{}) *gomock.Call

SchemaMigrationsUp indicates an expected call of SchemaMigrationsUp.

func (*MockStorageMockRecorder) SchemaTables added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaTables(arg0 interface{}) *gomock.Call

SchemaTables indicates an expected call of SchemaTables.

func (*MockStorageMockRecorder) SchemaVersion added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaVersion(arg0 interface{}) *gomock.Call

SchemaVersion indicates an expected call of SchemaVersion.

func (*MockStorageMockRecorder) StartupCheck added in v4.33.0

func (mr *MockStorageMockRecorder) StartupCheck() *gomock.Call

StartupCheck indicates an expected call of StartupCheck.

func (*MockStorageMockRecorder) UpdateTOTPConfigurationSignIn added in v4.34.0

func (mr *MockStorageMockRecorder) UpdateTOTPConfigurationSignIn(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateTOTPConfigurationSignIn indicates an expected call of UpdateTOTPConfigurationSignIn.

func (*MockStorageMockRecorder) UpdateWebauthnDeviceSignIn added in v4.34.0

func (mr *MockStorageMockRecorder) UpdateWebauthnDeviceSignIn(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

UpdateWebauthnDeviceSignIn indicates an expected call of UpdateWebauthnDeviceSignIn.

type MockTOTP added in v4.33.0

type MockTOTP struct {
	// contains filtered or unexported fields
}

MockTOTP is a mock of Provider interface.

func NewMockTOTP added in v4.33.0

func NewMockTOTP(ctrl *gomock.Controller) *MockTOTP

NewMockTOTP creates a new mock instance.

func (*MockTOTP) EXPECT added in v4.33.0

func (m *MockTOTP) EXPECT() *MockTOTPMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTOTP) Generate added in v4.33.0

func (m *MockTOTP) Generate(arg0 string) (*model.TOTPConfiguration, error)

Generate mocks base method.

func (*MockTOTP) GenerateCustom added in v4.33.0

func (m *MockTOTP) GenerateCustom(arg0, arg1, arg2 string, arg3, arg4, arg5 uint) (*model.TOTPConfiguration, error)

GenerateCustom mocks base method.

func (*MockTOTP) Validate added in v4.33.0

func (m *MockTOTP) Validate(arg0 string, arg1 *model.TOTPConfiguration) (bool, error)

Validate mocks base method.

type MockTOTPMockRecorder added in v4.33.0

type MockTOTPMockRecorder struct {
	// contains filtered or unexported fields
}

MockTOTPMockRecorder is the mock recorder for MockTOTP.

func (*MockTOTPMockRecorder) Generate added in v4.33.0

func (mr *MockTOTPMockRecorder) Generate(arg0 interface{}) *gomock.Call

Generate indicates an expected call of Generate.

func (*MockTOTPMockRecorder) GenerateCustom added in v4.33.0

func (mr *MockTOTPMockRecorder) GenerateCustom(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

GenerateCustom indicates an expected call of GenerateCustom.

func (*MockTOTPMockRecorder) Validate added in v4.33.0

func (mr *MockTOTPMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate.

type MockUserProvider

type MockUserProvider struct {
	// contains filtered or unexported fields
}

MockUserProvider is a mock of UserProvider interface.

func NewMockUserProvider

func NewMockUserProvider(ctrl *gomock.Controller) *MockUserProvider

NewMockUserProvider creates a new mock instance.

func (*MockUserProvider) CheckUserPassword

func (m *MockUserProvider) CheckUserPassword(arg0, arg1 string) (bool, error)

CheckUserPassword mocks base method.

func (*MockUserProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserProvider) GetDetails

func (m *MockUserProvider) GetDetails(arg0 string) (*authentication.UserDetails, error)

GetDetails mocks base method.

func (*MockUserProvider) StartupCheck added in v4.31.0

func (m *MockUserProvider) StartupCheck() error

StartupCheck mocks base method.

func (*MockUserProvider) UpdatePassword

func (m *MockUserProvider) UpdatePassword(arg0, arg1 string) error

UpdatePassword mocks base method.

type MockUserProviderMockRecorder

type MockUserProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserProviderMockRecorder is the mock recorder for MockUserProvider.

func (*MockUserProviderMockRecorder) CheckUserPassword

func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 interface{}) *gomock.Call

CheckUserPassword indicates an expected call of CheckUserPassword.

func (*MockUserProviderMockRecorder) GetDetails

func (mr *MockUserProviderMockRecorder) GetDetails(arg0 interface{}) *gomock.Call

GetDetails indicates an expected call of GetDetails.

func (*MockUserProviderMockRecorder) StartupCheck added in v4.31.0

func (mr *MockUserProviderMockRecorder) StartupCheck() *gomock.Call

StartupCheck indicates an expected call of StartupCheck.

func (*MockUserProviderMockRecorder) UpdatePassword

func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 interface{}) *gomock.Call

UpdatePassword indicates an expected call of UpdatePassword.

type TestingClock

type TestingClock struct {
	// contains filtered or unexported fields
}

TestingClock implementation of clock for tests.

func (*TestingClock) After

func (dc *TestingClock) After(d time.Duration) <-chan time.Time

After return a channel receiving the time after duration has elapsed.

func (*TestingClock) Now

func (dc *TestingClock) Now() time.Time

Now return the stored clock.

func (*TestingClock) Set

func (dc *TestingClock) Set(now time.Time)

Set set the time of the clock.

Jump to

Keyboard shortcuts

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