ldap_fake

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeLdap

type FakeLdap struct {
	DialStub func(network, addr string) (ldapshim.LdapConnection, error)

	DialTLSStub func(network, addr string, config *tls.Config) (ldapshim.LdapConnection, error)

	NewSearchRequestStub func(string, int, int, int, int, bool, string, []string, []ldap.Control) *ldap.SearchRequest
	// contains filtered or unexported fields
}

func (*FakeLdap) Dial

func (fake *FakeLdap) Dial(network string, addr string) (ldapshim.LdapConnection, error)

func (*FakeLdap) DialArgsForCall

func (fake *FakeLdap) DialArgsForCall(i int) (string, string)

func (*FakeLdap) DialCallCount

func (fake *FakeLdap) DialCallCount() int

func (*FakeLdap) DialReturns

func (fake *FakeLdap) DialReturns(result1 ldapshim.LdapConnection, result2 error)

func (*FakeLdap) DialReturnsOnCall

func (fake *FakeLdap) DialReturnsOnCall(i int, result1 ldapshim.LdapConnection, result2 error)

func (*FakeLdap) DialTLS

func (fake *FakeLdap) DialTLS(network string, addr string, config *tls.Config) (ldapshim.LdapConnection, error)

func (*FakeLdap) DialTLSArgsForCall

func (fake *FakeLdap) DialTLSArgsForCall(i int) (string, string, *tls.Config)

func (*FakeLdap) DialTLSCallCount

func (fake *FakeLdap) DialTLSCallCount() int

func (*FakeLdap) DialTLSReturns

func (fake *FakeLdap) DialTLSReturns(result1 ldapshim.LdapConnection, result2 error)

func (*FakeLdap) DialTLSReturnsOnCall

func (fake *FakeLdap) DialTLSReturnsOnCall(i int, result1 ldapshim.LdapConnection, result2 error)

func (*FakeLdap) Invocations

func (fake *FakeLdap) Invocations() map[string][][]interface{}

func (*FakeLdap) NewSearchRequest

func (fake *FakeLdap) NewSearchRequest(arg1 string, arg2 int, arg3 int, arg4 int, arg5 int, arg6 bool, arg7 string, arg8 []string, arg9 []ldap.Control) *ldap.SearchRequest

func (*FakeLdap) NewSearchRequestArgsForCall

func (fake *FakeLdap) NewSearchRequestArgsForCall(i int) (string, int, int, int, int, bool, string, []string, []ldap.Control)

func (*FakeLdap) NewSearchRequestCallCount

func (fake *FakeLdap) NewSearchRequestCallCount() int

func (*FakeLdap) NewSearchRequestReturns

func (fake *FakeLdap) NewSearchRequestReturns(result1 *ldap.SearchRequest)

func (*FakeLdap) NewSearchRequestReturnsOnCall

func (fake *FakeLdap) NewSearchRequestReturnsOnCall(i int, result1 *ldap.SearchRequest)

type FakeLdapConnection

type FakeLdapConnection struct {
	SetTimeoutStub func(timeout time.Duration)

	CloseStub func()

	BindStub func(string, string) error

	SearchStub func(*ldap.SearchRequest) (*ldap.SearchResult, error)
	// contains filtered or unexported fields
}

func (*FakeLdapConnection) Bind

func (fake *FakeLdapConnection) Bind(arg1 string, arg2 string) error

func (*FakeLdapConnection) BindArgsForCall

func (fake *FakeLdapConnection) BindArgsForCall(i int) (string, string)

func (*FakeLdapConnection) BindCallCount

func (fake *FakeLdapConnection) BindCallCount() int

func (*FakeLdapConnection) BindReturns

func (fake *FakeLdapConnection) BindReturns(result1 error)

func (*FakeLdapConnection) BindReturnsOnCall

func (fake *FakeLdapConnection) BindReturnsOnCall(i int, result1 error)

func (*FakeLdapConnection) Close

func (fake *FakeLdapConnection) Close()

func (*FakeLdapConnection) CloseCallCount

func (fake *FakeLdapConnection) CloseCallCount() int

func (*FakeLdapConnection) Invocations

func (fake *FakeLdapConnection) Invocations() map[string][][]interface{}

func (*FakeLdapConnection) Search

func (fake *FakeLdapConnection) Search(arg1 *ldap.SearchRequest) (*ldap.SearchResult, error)

func (*FakeLdapConnection) SearchArgsForCall

func (fake *FakeLdapConnection) SearchArgsForCall(i int) *ldap.SearchRequest

func (*FakeLdapConnection) SearchCallCount

func (fake *FakeLdapConnection) SearchCallCount() int

func (*FakeLdapConnection) SearchReturns

func (fake *FakeLdapConnection) SearchReturns(result1 *ldap.SearchResult, result2 error)

func (*FakeLdapConnection) SearchReturnsOnCall

func (fake *FakeLdapConnection) SearchReturnsOnCall(i int, result1 *ldap.SearchResult, result2 error)

func (*FakeLdapConnection) SetTimeout

func (fake *FakeLdapConnection) SetTimeout(timeout time.Duration)

func (*FakeLdapConnection) SetTimeoutArgsForCall

func (fake *FakeLdapConnection) SetTimeoutArgsForCall(i int) time.Duration

func (*FakeLdapConnection) SetTimeoutCallCount

func (fake *FakeLdapConnection) SetTimeoutCallCount() int

Jump to

Keyboard shortcuts

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