2022-03-17 11:02:54 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2022-05-10 11:38:36 +07:00
|
|
|
// Source: github.com/authelia/authelia/v4/internal/authentication (interfaces: LDAPClient)
|
2022-03-17 11:02:54 +07:00
|
|
|
|
|
|
|
// Package authentication is a generated GoMock package.
|
|
|
|
package authentication
|
|
|
|
|
|
|
|
import (
|
|
|
|
tls "crypto/tls"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
ldap "github.com/go-ldap/ldap/v3"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
)
|
|
|
|
|
2022-05-10 11:38:36 +07:00
|
|
|
// MockLDAPClient is a mock of LDAPClient interface.
|
|
|
|
type MockLDAPClient struct {
|
2022-03-17 11:02:54 +07:00
|
|
|
ctrl *gomock.Controller
|
2022-05-10 11:38:36 +07:00
|
|
|
recorder *MockLDAPClientMockRecorder
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|
|
|
|
|
2022-05-10 11:38:36 +07:00
|
|
|
// MockLDAPClientMockRecorder is the mock recorder for MockLDAPClient.
|
|
|
|
type MockLDAPClientMockRecorder struct {
|
|
|
|
mock *MockLDAPClient
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|
|
|
|
|
2022-05-10 11:38:36 +07:00
|
|
|
// NewMockLDAPClient creates a new mock instance.
|
|
|
|
func NewMockLDAPClient(ctrl *gomock.Controller) *MockLDAPClient {
|
|
|
|
mock := &MockLDAPClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockLDAPClientMockRecorder{mock}
|
2022-03-17 11:02:54 +07:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (m *MockLDAPClient) EXPECT() *MockLDAPClientMockRecorder {
|
2022-03-17 11:02:54 +07:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bind mocks base method.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (m *MockLDAPClient) Bind(arg0, arg1 string) error {
|
2022-03-17 11:02:54 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Bind", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Bind indicates an expected call of Bind.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (mr *MockLDAPClientMockRecorder) Bind(arg0, arg1 interface{}) *gomock.Call {
|
2022-03-17 11:02:54 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-05-10 11:38:36 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bind", reflect.TypeOf((*MockLDAPClient)(nil).Bind), arg0, arg1)
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Close mocks base method.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (m *MockLDAPClient) Close() {
|
2022-03-17 11:02:54 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
m.ctrl.Call(m, "Close")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close indicates an expected call of Close.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (mr *MockLDAPClientMockRecorder) Close() *gomock.Call {
|
2022-03-17 11:02:54 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-05-10 11:38:36 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockLDAPClient)(nil).Close))
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Modify mocks base method.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (m *MockLDAPClient) Modify(arg0 *ldap.ModifyRequest) error {
|
2022-03-17 11:02:54 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Modify", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Modify indicates an expected call of Modify.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (mr *MockLDAPClientMockRecorder) Modify(arg0 interface{}) *gomock.Call {
|
2022-03-17 11:02:54 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-05-10 11:38:36 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Modify", reflect.TypeOf((*MockLDAPClient)(nil).Modify), arg0)
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordModify mocks base method.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (m *MockLDAPClient) PasswordModify(arg0 *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error) {
|
2022-03-17 11:02:54 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "PasswordModify", arg0)
|
|
|
|
ret0, _ := ret[0].(*ldap.PasswordModifyResult)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// PasswordModify indicates an expected call of PasswordModify.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (mr *MockLDAPClientMockRecorder) PasswordModify(arg0 interface{}) *gomock.Call {
|
2022-03-17 11:02:54 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-05-10 11:38:36 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PasswordModify", reflect.TypeOf((*MockLDAPClient)(nil).PasswordModify), arg0)
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Search mocks base method.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (m *MockLDAPClient) Search(arg0 *ldap.SearchRequest) (*ldap.SearchResult, error) {
|
2022-03-17 11:02:54 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Search", arg0)
|
|
|
|
ret0, _ := ret[0].(*ldap.SearchResult)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Search indicates an expected call of Search.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (mr *MockLDAPClientMockRecorder) Search(arg0 interface{}) *gomock.Call {
|
2022-03-17 11:02:54 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-05-10 11:38:36 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Search", reflect.TypeOf((*MockLDAPClient)(nil).Search), arg0)
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// StartTLS mocks base method.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (m *MockLDAPClient) StartTLS(arg0 *tls.Config) error {
|
2022-03-17 11:02:54 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StartTLS", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// StartTLS indicates an expected call of StartTLS.
|
2022-05-10 11:38:36 +07:00
|
|
|
func (mr *MockLDAPClientMockRecorder) StartTLS(arg0 interface{}) *gomock.Call {
|
2022-03-17 11:02:54 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-05-10 11:38:36 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTLS", reflect.TypeOf((*MockLDAPClient)(nil).StartTLS), arg0)
|
2022-03-17 11:02:54 +07:00
|
|
|
}
|