Documentation ¶
Index ¶
- type LDAPClient
- type LDAPClient_CreateEphemeralConnection_Call
- func (_c *LDAPClient_CreateEphemeralConnection_Call) Return(_a0 ldapauth.LDAPConn, _a1 error) *LDAPClient_CreateEphemeralConnection_Call
- func (_c *LDAPClient_CreateEphemeralConnection_Call) Run(run func()) *LDAPClient_CreateEphemeralConnection_Call
- func (_c *LDAPClient_CreateEphemeralConnection_Call) RunAndReturn(run func() (ldapauth.LDAPConn, error)) *LDAPClient_CreateEphemeralConnection_Call
- type LDAPClient_Expecter
- type LDAPConn
- type LDAPConn_Bind_Call
- type LDAPConn_Close_Call
- type LDAPConn_Expecter
- type LDAPConn_Search_Call
- func (_c *LDAPConn_Search_Call) Return(_a0 *ldap.SearchResult, _a1 error) *LDAPConn_Search_Call
- func (_c *LDAPConn_Search_Call) Run(run func(searchRequest *ldap.SearchRequest)) *LDAPConn_Search_Call
- func (_c *LDAPConn_Search_Call) RunAndReturn(run func(*ldap.SearchRequest) (*ldap.SearchResult, error)) *LDAPConn_Search_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LDAPClient ¶
LDAPClient is an autogenerated mock type for the LDAPClient type
func NewLDAPClient ¶
func NewLDAPClient(t interface { mock.TestingT Cleanup(func()) }) *LDAPClient
NewLDAPClient creates a new instance of LDAPClient. 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 (*LDAPClient) CreateEphemeralConnection ¶
func (_m *LDAPClient) CreateEphemeralConnection() (ldapauth.LDAPConn, error)
CreateEphemeralConnection provides a mock function with given fields:
func (*LDAPClient) EXPECT ¶ added in v2.15.0
func (_m *LDAPClient) EXPECT() *LDAPClient_Expecter
type LDAPClient_CreateEphemeralConnection_Call ¶ added in v2.15.0
LDAPClient_CreateEphemeralConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEphemeralConnection'
func (*LDAPClient_CreateEphemeralConnection_Call) Return ¶ added in v2.15.0
func (_c *LDAPClient_CreateEphemeralConnection_Call) Return(_a0 ldapauth.LDAPConn, _a1 error) *LDAPClient_CreateEphemeralConnection_Call
func (*LDAPClient_CreateEphemeralConnection_Call) Run ¶ added in v2.15.0
func (_c *LDAPClient_CreateEphemeralConnection_Call) Run(run func()) *LDAPClient_CreateEphemeralConnection_Call
func (*LDAPClient_CreateEphemeralConnection_Call) RunAndReturn ¶ added in v2.15.0
func (_c *LDAPClient_CreateEphemeralConnection_Call) RunAndReturn(run func() (ldapauth.LDAPConn, error)) *LDAPClient_CreateEphemeralConnection_Call
type LDAPClient_Expecter ¶ added in v2.15.0
type LDAPClient_Expecter struct {
// contains filtered or unexported fields
}
func (*LDAPClient_Expecter) CreateEphemeralConnection ¶ added in v2.15.0
func (_e *LDAPClient_Expecter) CreateEphemeralConnection() *LDAPClient_CreateEphemeralConnection_Call
CreateEphemeralConnection is a helper method to define mock.On call
type LDAPConn ¶
LDAPConn is an autogenerated mock type for the LDAPConn type
func NewLDAPConn ¶
NewLDAPConn creates a new instance of LDAPConn. 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 (*LDAPConn) EXPECT ¶ added in v2.15.0
func (_m *LDAPConn) EXPECT() *LDAPConn_Expecter
func (*LDAPConn) Search ¶
func (_m *LDAPConn) Search(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error)
Search provides a mock function with given fields: searchRequest
type LDAPConn_Bind_Call ¶ added in v2.15.0
LDAPConn_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'
func (*LDAPConn_Bind_Call) Return ¶ added in v2.15.0
func (_c *LDAPConn_Bind_Call) Return(_a0 error) *LDAPConn_Bind_Call
func (*LDAPConn_Bind_Call) Run ¶ added in v2.15.0
func (_c *LDAPConn_Bind_Call) Run(run func(username string, password string)) *LDAPConn_Bind_Call
func (*LDAPConn_Bind_Call) RunAndReturn ¶ added in v2.15.0
func (_c *LDAPConn_Bind_Call) RunAndReturn(run func(string, string) error) *LDAPConn_Bind_Call
type LDAPConn_Close_Call ¶ added in v2.15.0
LDAPConn_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*LDAPConn_Close_Call) Return ¶ added in v2.15.0
func (_c *LDAPConn_Close_Call) Return(err error) *LDAPConn_Close_Call
func (*LDAPConn_Close_Call) Run ¶ added in v2.15.0
func (_c *LDAPConn_Close_Call) Run(run func()) *LDAPConn_Close_Call
func (*LDAPConn_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *LDAPConn_Close_Call) RunAndReturn(run func() error) *LDAPConn_Close_Call
type LDAPConn_Expecter ¶ added in v2.15.0
type LDAPConn_Expecter struct {
// contains filtered or unexported fields
}
func (*LDAPConn_Expecter) Bind ¶ added in v2.15.0
func (_e *LDAPConn_Expecter) Bind(username interface{}, password interface{}) *LDAPConn_Bind_Call
Bind is a helper method to define mock.On call
- username string
- password string
func (*LDAPConn_Expecter) Close ¶ added in v2.15.0
func (_e *LDAPConn_Expecter) Close() *LDAPConn_Close_Call
Close is a helper method to define mock.On call
func (*LDAPConn_Expecter) Search ¶ added in v2.15.0
func (_e *LDAPConn_Expecter) Search(searchRequest interface{}) *LDAPConn_Search_Call
Search is a helper method to define mock.On call
- searchRequest *ldap.SearchRequest
type LDAPConn_Search_Call ¶ added in v2.15.0
LDAPConn_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'
func (*LDAPConn_Search_Call) Return ¶ added in v2.15.0
func (_c *LDAPConn_Search_Call) Return(_a0 *ldap.SearchResult, _a1 error) *LDAPConn_Search_Call
func (*LDAPConn_Search_Call) Run ¶ added in v2.15.0
func (_c *LDAPConn_Search_Call) Run(run func(searchRequest *ldap.SearchRequest)) *LDAPConn_Search_Call
func (*LDAPConn_Search_Call) RunAndReturn ¶ added in v2.15.0
func (_c *LDAPConn_Search_Call) RunAndReturn(run func(*ldap.SearchRequest) (*ldap.SearchResult, error)) *LDAPConn_Search_Call