Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) ImportUser(ctx context.Context, sess *ldap.Session, ldapImportUsers []string) ([]model.FailedImportUser, error)
- func (_m *Manager) Ping(ctx context.Context, cfg models.LdapConf) (bool, error)
- func (_m *Manager) SearchGroup(ctx context.Context, sess *ldap.Session, groupName string, groupDN string) ([]model.Group, error)
- func (_m *Manager) SearchUser(ctx context.Context, sess *ldap.Session, username string) ([]model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) ImportUser ¶
func (_m *Manager) ImportUser(ctx context.Context, sess *ldap.Session, ldapImportUsers []string) ([]model.FailedImportUser, error)
ImportUser provides a mock function with given fields: ctx, sess, ldapImportUsers
Click to show internal directories.
Click to hide internal directories.