Documentation
¶
Index ¶
- type Client
- func (_m *Client) Add(_a0 *ldap.AddRequest) error
- func (_m *Client) Bind(username string, password string) error
- func (_m *Client) Close() error
- func (_m *Client) Compare(dn string, attribute string, value string) (bool, error)
- func (_m *Client) Del(_a0 *ldap.DelRequest) error
- func (_m *Client) DirSync(searchRequest *ldap.SearchRequest, flags int64, maxAttrCount int64, ...) (*ldap.SearchResult, error)
- func (_m *Client) DirSyncAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, ...) ldap.Response
- func (_m *Client) Extended(_a0 *ldap.ExtendedRequest) (*ldap.ExtendedResponse, error)
- func (_m *Client) ExternalBind() error
- func (_m *Client) GetLastError() error
- func (_m *Client) IsClosing() bool
- func (_m *Client) Modify(_a0 *ldap.ModifyRequest) error
- func (_m *Client) ModifyDN(_a0 *ldap.ModifyDNRequest) error
- func (_m *Client) ModifyWithResult(_a0 *ldap.ModifyRequest) (*ldap.ModifyResult, error)
- func (_m *Client) NTLMUnauthenticatedBind(domain string, username string) error
- func (_m *Client) PasswordModify(_a0 *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error)
- func (_m *Client) Search(_a0 *ldap.SearchRequest) (*ldap.SearchResult, error)
- func (_m *Client) SearchAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int) ldap.Response
- func (_m *Client) SearchWithPaging(searchRequest *ldap.SearchRequest, pagingSize uint32) (*ldap.SearchResult, error)
- func (_m *Client) SetTimeout(_a0 time.Duration)
- func (_m *Client) SimpleBind(_a0 *ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)
- func (_m *Client) Start()
- func (_m *Client) StartTLS(_a0 *tls.Config) error
- func (_m *Client) Syncrepl(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, ...) ldap.Response
- func (_m *Client) TLSConnectionState() (tls.ConnectionState, bool)
- func (_m *Client) UnauthenticatedBind(username string) error
- func (_m *Client) Unbind() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) Add ¶
func (_m *Client) Add(_a0 *ldap.AddRequest) error
Add provides a mock function with given fields: _a0
func (*Client) Del ¶
func (_m *Client) Del(_a0 *ldap.DelRequest) error
Del provides a mock function with given fields: _a0
func (*Client) DirSync ¶
func (_m *Client) DirSync(searchRequest *ldap.SearchRequest, flags int64, maxAttrCount int64, cookie []byte) (*ldap.SearchResult, error)
DirSync provides a mock function with given fields: searchRequest, flags, maxAttrCount, cookie
func (*Client) DirSyncAsync ¶
func (_m *Client) DirSyncAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, flags int64, maxAttrCount int64, cookie []byte) ldap.Response
DirSyncAsync provides a mock function with given fields: ctx, searchRequest, bufferSize, flags, maxAttrCount, cookie
func (*Client) Extended ¶
func (_m *Client) Extended(_a0 *ldap.ExtendedRequest) (*ldap.ExtendedResponse, error)
Extended provides a mock function with given fields: _a0
func (*Client) ExternalBind ¶
ExternalBind provides a mock function with no fields
func (*Client) GetLastError ¶
GetLastError provides a mock function with no fields
func (*Client) Modify ¶
func (_m *Client) Modify(_a0 *ldap.ModifyRequest) error
Modify provides a mock function with given fields: _a0
func (*Client) ModifyDN ¶
func (_m *Client) ModifyDN(_a0 *ldap.ModifyDNRequest) error
ModifyDN provides a mock function with given fields: _a0
func (*Client) ModifyWithResult ¶
func (_m *Client) ModifyWithResult(_a0 *ldap.ModifyRequest) (*ldap.ModifyResult, error)
ModifyWithResult provides a mock function with given fields: _a0
func (*Client) NTLMUnauthenticatedBind ¶
NTLMUnauthenticatedBind provides a mock function with given fields: domain, username
func (*Client) PasswordModify ¶
func (_m *Client) PasswordModify(_a0 *ldap.PasswordModifyRequest) (*ldap.PasswordModifyResult, error)
PasswordModify provides a mock function with given fields: _a0
func (*Client) Search ¶
func (_m *Client) Search(_a0 *ldap.SearchRequest) (*ldap.SearchResult, error)
Search provides a mock function with given fields: _a0
func (*Client) SearchAsync ¶
func (_m *Client) SearchAsync(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int) ldap.Response
SearchAsync provides a mock function with given fields: ctx, searchRequest, bufferSize
func (*Client) SearchWithPaging ¶
func (_m *Client) SearchWithPaging(searchRequest *ldap.SearchRequest, pagingSize uint32) (*ldap.SearchResult, error)
SearchWithPaging provides a mock function with given fields: searchRequest, pagingSize
func (*Client) SetTimeout ¶
SetTimeout provides a mock function with given fields: _a0
func (*Client) SimpleBind ¶
func (_m *Client) SimpleBind(_a0 *ldap.SimpleBindRequest) (*ldap.SimpleBindResult, error)
SimpleBind provides a mock function with given fields: _a0
func (*Client) Syncrepl ¶
func (_m *Client) Syncrepl(ctx context.Context, searchRequest *ldap.SearchRequest, bufferSize int, mode ldap.ControlSyncRequestMode, cookie []byte, reloadHint bool) ldap.Response
Syncrepl provides a mock function with given fields: ctx, searchRequest, bufferSize, mode, cookie, reloadHint
func (*Client) TLSConnectionState ¶
func (_m *Client) TLSConnectionState() (tls.ConnectionState, bool)
TLSConnectionState provides a mock function with no fields
func (*Client) UnauthenticatedBind ¶
UnauthenticatedBind provides a mock function with given fields: username