2019-11-17 01:05:46 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-11-23 09:45:38 +00:00
|
|
|
// Source: ./internal/storage/provider.go
|
2019-11-17 01:05:46 +00:00
|
|
|
|
|
|
|
package storage
|
|
|
|
|
|
|
|
import (
|
2021-11-25 01:56:58 +00:00
|
|
|
"context"
|
|
|
|
"reflect"
|
|
|
|
"time"
|
2020-04-05 12:37:21 +00:00
|
|
|
|
2021-11-25 01:56:58 +00:00
|
|
|
"github.com/golang/mock/gomock"
|
2020-04-05 12:37:21 +00:00
|
|
|
|
2021-11-25 01:56:58 +00:00
|
|
|
"github.com/authelia/authelia/v4/internal/models"
|
2019-11-17 01:05:46 +00:00
|
|
|
)
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// MockProvider is a mock of Provider interface.
|
2019-11-17 01:05:46 +00:00
|
|
|
type MockProvider struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockProviderMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// MockProviderMockRecorder is the mock recorder for MockProvider.
|
2019-11-17 01:05:46 +00:00
|
|
|
type MockProviderMockRecorder struct {
|
|
|
|
mock *MockProvider
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// NewMockProvider creates a new mock instance.
|
2019-11-17 01:05:46 +00:00
|
|
|
func NewMockProvider(ctrl *gomock.Controller) *MockProvider {
|
|
|
|
mock := &MockProvider{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockProviderMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2019-11-17 01:05:46 +00:00
|
|
|
func (m *MockProvider) EXPECT() *MockProviderMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// AppendAuthenticationLog mocks base method.
|
|
|
|
func (m *MockProvider) AppendAuthenticationLog(arg0 context.Context, arg1 models.AuthenticationAttempt) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "AppendAuthenticationLog", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-12-07 17:51:47 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog.
|
|
|
|
func (mr *MockProviderMockRecorder) AppendAuthenticationLog(arg0, arg1 interface{}) *gomock.Call {
|
2019-12-07 17:51:47 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendAuthenticationLog", reflect.TypeOf((*MockProvider)(nil).AppendAuthenticationLog), arg0, arg1)
|
2019-12-07 17:51:47 +00:00
|
|
|
}
|
|
|
|
|
2021-11-25 01:56:58 +00:00
|
|
|
// Close mocks base method.
|
|
|
|
func (m *MockProvider) Close() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Close")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close indicates an expected call of Close.
|
|
|
|
func (mr *MockProviderMockRecorder) Close() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockProvider)(nil).Close))
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// DeleteTOTPConfiguration mocks base method.
|
|
|
|
func (m *MockProvider) DeleteTOTPConfiguration(arg0 context.Context, arg1 string) error {
|
2019-12-07 17:51:47 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "DeleteTOTPConfiguration", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// DeleteTOTPConfiguration indicates an expected call of DeleteTOTPConfiguration.
|
|
|
|
func (mr *MockProviderMockRecorder) DeleteTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTOTPConfiguration", reflect.TypeOf((*MockProvider)(nil).DeleteTOTPConfiguration), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// FindIdentityVerification mocks base method.
|
|
|
|
func (m *MockProvider) FindIdentityVerification(arg0 context.Context, arg1 string) (bool, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "FindIdentityVerification", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// FindIdentityVerification indicates an expected call of FindIdentityVerification.
|
|
|
|
func (mr *MockProviderMockRecorder) FindIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindIdentityVerification", reflect.TypeOf((*MockProvider)(nil).FindIdentityVerification), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// LoadAuthenticationLogs mocks base method.
|
|
|
|
func (m *MockProvider) LoadAuthenticationLogs(arg0 context.Context, arg1 string, arg2 time.Time, arg3, arg4 int) ([]models.AuthenticationAttempt, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "LoadAuthenticationLogs", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].([]models.AuthenticationAttempt)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadAuthenticationLogs indicates an expected call of LoadAuthenticationLogs.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadAuthenticationLogs", reflect.TypeOf((*MockProvider)(nil).LoadAuthenticationLogs), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadPreferred2FAMethod mocks base method.
|
|
|
|
func (m *MockProvider) LoadPreferred2FAMethod(arg0 context.Context, arg1 string) (string, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadPreferred2FAMethod", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadPreferred2FAMethod indicates an expected call of LoadPreferred2FAMethod.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadPreferred2FAMethod(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPreferred2FAMethod", reflect.TypeOf((*MockProvider)(nil).LoadPreferred2FAMethod), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadTOTPConfiguration mocks base method.
|
|
|
|
func (m *MockProvider) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (*models.TOTPConfiguration, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadTOTPConfiguration", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*models.TOTPConfiguration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadTOTPConfiguration indicates an expected call of LoadTOTPConfiguration.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTOTPConfiguration", reflect.TypeOf((*MockProvider)(nil).LoadTOTPConfiguration), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-11-25 01:56:58 +00:00
|
|
|
// LoadTOTPConfigurations mocks base method.
|
|
|
|
func (m *MockProvider) LoadTOTPConfigurations(arg0 context.Context, arg1, arg2 int) ([]models.TOTPConfiguration, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadTOTPConfigurations", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].([]models.TOTPConfiguration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadTOTPConfigurations indicates an expected call of LoadTOTPConfigurations.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTOTPConfigurations", reflect.TypeOf((*MockProvider)(nil).LoadTOTPConfigurations), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// LoadU2FDevice mocks base method.
|
|
|
|
func (m *MockProvider) LoadU2FDevice(arg0 context.Context, arg1 string) (*models.U2FDevice, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadU2FDevice", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*models.U2FDevice)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// LoadU2FDevice indicates an expected call of LoadU2FDevice.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadU2FDevice(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadU2FDevice", reflect.TypeOf((*MockProvider)(nil).LoadU2FDevice), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// LoadUserInfo mocks base method.
|
|
|
|
func (m *MockProvider) LoadUserInfo(arg0 context.Context, arg1 string) (models.UserInfo, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "LoadUserInfo", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(models.UserInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadUserInfo indicates an expected call of LoadUserInfo.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadUserInfo(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserInfo", reflect.TypeOf((*MockProvider)(nil).LoadUserInfo), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveIdentityVerification mocks base method.
|
|
|
|
func (m *MockProvider) RemoveIdentityVerification(arg0 context.Context, arg1 string) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "RemoveIdentityVerification", arg0, arg1)
|
2019-12-07 17:51:47 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// RemoveIdentityVerification indicates an expected call of RemoveIdentityVerification.
|
|
|
|
func (mr *MockProviderMockRecorder) RemoveIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveIdentityVerification", reflect.TypeOf((*MockProvider)(nil).RemoveIdentityVerification), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveIdentityVerification mocks base method.
|
|
|
|
func (m *MockProvider) SaveIdentityVerification(arg0 context.Context, arg1 models.IdentityVerification) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SaveIdentityVerification", arg0, arg1)
|
2019-12-07 17:51:47 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveIdentityVerification indicates an expected call of SaveIdentityVerification.
|
|
|
|
func (mr *MockProviderMockRecorder) SaveIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveIdentityVerification", reflect.TypeOf((*MockProvider)(nil).SaveIdentityVerification), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SavePreferred2FAMethod mocks base method.
|
|
|
|
func (m *MockProvider) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 string) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SavePreferred2FAMethod", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SavePreferred2FAMethod indicates an expected call of SavePreferred2FAMethod.
|
|
|
|
func (mr *MockProviderMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePreferred2FAMethod", reflect.TypeOf((*MockProvider)(nil).SavePreferred2FAMethod), arg0, arg1, arg2)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveTOTPConfiguration mocks base method.
|
|
|
|
func (m *MockProvider) SaveTOTPConfiguration(arg0 context.Context, arg1 models.TOTPConfiguration) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SaveTOTPConfiguration", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveTOTPConfiguration indicates an expected call of SaveTOTPConfiguration.
|
|
|
|
func (mr *MockProviderMockRecorder) SaveTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveTOTPConfiguration", reflect.TypeOf((*MockProvider)(nil).SaveTOTPConfiguration), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveU2FDevice mocks base method.
|
|
|
|
func (m *MockProvider) SaveU2FDevice(arg0 context.Context, arg1 models.U2FDevice) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SaveU2FDevice", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveU2FDevice indicates an expected call of SaveU2FDevice.
|
|
|
|
func (mr *MockProviderMockRecorder) SaveU2FDevice(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveU2FDevice", reflect.TypeOf((*MockProvider)(nil).SaveU2FDevice), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-25 01:56:58 +00:00
|
|
|
// SchemaEncryptionChangeKey mocks base method.
|
|
|
|
func (m *MockProvider) SchemaEncryptionChangeKey(arg0 context.Context, arg1 string) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaEncryptionChangeKey", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaEncryptionChangeKey indicates an expected call of SchemaEncryptionChangeKey.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaEncryptionChangeKey", reflect.TypeOf((*MockProvider)(nil).SchemaEncryptionChangeKey), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaEncryptionCheckKey mocks base method.
|
|
|
|
func (m *MockProvider) SchemaEncryptionCheckKey(arg0 context.Context, arg1 bool) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaEncryptionCheckKey", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaEncryptionCheckKey indicates an expected call of SchemaEncryptionCheckKey.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaEncryptionCheckKey", reflect.TypeOf((*MockProvider)(nil).SchemaEncryptionCheckKey), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaLatestVersion mocks base method.
|
|
|
|
func (m *MockProvider) SchemaLatestVersion() (int, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SchemaLatestVersion")
|
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaLatestVersion indicates an expected call of SchemaLatestVersion.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaLatestVersion() *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaLatestVersion", reflect.TypeOf((*MockProvider)(nil).SchemaLatestVersion))
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrate mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrate(arg0 context.Context, arg1 bool, arg2 int) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrate", arg0, arg1, arg2)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrate indicates an expected call of SchemaMigrate.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrate(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrate", reflect.TypeOf((*MockProvider)(nil).SchemaMigrate), arg0, arg1, arg2)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrationHistory mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrationHistory(arg0 context.Context) ([]models.Migration, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationHistory", arg0)
|
|
|
|
ret0, _ := ret[0].([]models.Migration)
|
2019-12-07 17:51:47 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrationHistory indicates an expected call of SchemaMigrationHistory.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrationHistory(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationHistory", reflect.TypeOf((*MockProvider)(nil).SchemaMigrationHistory), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsDown mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]SchemaMigration, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationsDown", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]SchemaMigration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsDown indicates an expected call of SchemaMigrationsDown.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrationsDown(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsDown", reflect.TypeOf((*MockProvider)(nil).SchemaMigrationsDown), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsUp mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]SchemaMigration, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationsUp", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]SchemaMigration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsUp indicates an expected call of SchemaMigrationsUp.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrationsUp(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsUp", reflect.TypeOf((*MockProvider)(nil).SchemaMigrationsUp), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaTables mocks base method.
|
|
|
|
func (m *MockProvider) SchemaTables(arg0 context.Context) ([]string, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaTables", arg0)
|
|
|
|
ret0, _ := ret[0].([]string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaTables indicates an expected call of SchemaTables.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaTables(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaTables", reflect.TypeOf((*MockProvider)(nil).SchemaTables), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaVersion mocks base method.
|
|
|
|
func (m *MockProvider) SchemaVersion(arg0 context.Context) (int, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaVersion", arg0)
|
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaVersion indicates an expected call of SchemaVersion.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaVersion(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaVersion", reflect.TypeOf((*MockProvider)(nil).SchemaVersion), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StartupCheck mocks base method.
|
|
|
|
func (m *MockProvider) StartupCheck() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StartupCheck")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// StartupCheck indicates an expected call of StartupCheck.
|
|
|
|
func (mr *MockProviderMockRecorder) StartupCheck() *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartupCheck", reflect.TypeOf((*MockProvider)(nil).StartupCheck))
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
2021-11-25 01:56:58 +00:00
|
|
|
|
|
|
|
// UpdateTOTPConfigurationSecret mocks base method.
|
|
|
|
func (m *MockProvider) UpdateTOTPConfigurationSecret(arg0 context.Context, arg1 models.TOTPConfiguration) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdateTOTPConfigurationSecret", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateTOTPConfigurationSecret indicates an expected call of UpdateTOTPConfigurationSecret.
|
|
|
|
func (mr *MockProviderMockRecorder) UpdateTOTPConfigurationSecret(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTOTPConfigurationSecret", reflect.TypeOf((*MockProvider)(nil).UpdateTOTPConfigurationSecret), arg0, arg1)
|
|
|
|
}
|