ldap

package
v0.0.0-...-d01dfd4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

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

func (*Manager) Ping

func (_m *Manager) Ping(ctx context.Context, cfg models.LdapConf) (bool, error)

Ping provides a mock function with given fields: ctx, cfg

func (*Manager) SearchGroup

func (_m *Manager) SearchGroup(ctx context.Context, sess *ldap.Session, groupName string, groupDN string) ([]model.Group, error)

SearchGroup provides a mock function with given fields: ctx, sess, groupName, groupDN

func (*Manager) SearchUser

func (_m *Manager) SearchUser(ctx context.Context, sess *ldap.Session, username string) ([]model.User, error)

SearchUser provides a mock function with given fields: ctx, sess, username

Jump to

Keyboard shortcuts

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