ldap_fake

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 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(string, string) (ldapshim.LdapConnection, error)

	DialTLSStub func(string, string, *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(arg1 string, arg2 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) DialCalls added in v0.40.0

func (fake *FakeLdap) DialCalls(stub func(string, string) (ldapshim.LdapConnection, error))

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(arg1 string, arg2 string, arg3 *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) DialTLSCalls added in v0.40.0

func (fake *FakeLdap) DialTLSCalls(stub func(string, string, *tls.Config) (ldapshim.LdapConnection, error))

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) NewSearchRequestCalls added in v0.40.0

func (fake *FakeLdap) NewSearchRequestCalls(stub func(string, int, int, int, int, bool, string, []string, []ldap.Control) *ldap.SearchRequest)

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 {
	BindStub func(string, string) error

	CloseStub func()

	SearchStub func(*ldap.SearchRequest) (*ldap.SearchResult, error)

	SetTimeoutStub func(time.Duration)
	// 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) BindCalls added in v0.40.0

func (fake *FakeLdapConnection) BindCalls(stub func(string, string) error)

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) CloseCalls added in v0.40.0

func (fake *FakeLdapConnection) CloseCalls(stub func())

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) SearchCalls added in v0.40.0

func (fake *FakeLdapConnection) SearchCalls(stub func(*ldap.SearchRequest) (*ldap.SearchResult, error))

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(arg1 time.Duration)

func (*FakeLdapConnection) SetTimeoutArgsForCall

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

func (*FakeLdapConnection) SetTimeoutCallCount

func (fake *FakeLdapConnection) SetTimeoutCallCount() int

func (*FakeLdapConnection) SetTimeoutCalls added in v0.40.0

func (fake *FakeLdapConnection) SetTimeoutCalls(stub func(time.Duration))

Jump to

Keyboard shortcuts

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