util

package
v0.0.0-...-c932893 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoSuchObjectError

func IsNoSuchObjectError(err error) bool

func NewInvalidDNError

func NewInvalidDNError(dnNorm string) error

func NewRetryError

func NewRetryError(err error) error

Types

type Int64Set

type Int64Set map[int64]struct{}

func NewInt64Set

func NewInt64Set(num ...int64) Int64Set

func (Int64Set) Add

func (s Int64Set) Add(num int64)

func (Int64Set) Values

func (s Int64Set) Values() []int64

type InvalidDNError

type InvalidDNError struct {
	// contains filtered or unexported fields
}

func (*InvalidDNError) Error

func (e *InvalidDNError) Error() string

type LDAPError

type LDAPError struct {
	Code      int
	Msg       string
	MatchedDN string
	Subtype   string
	// contains filtered or unexported fields
}

func NewAccountLocked

func NewAccountLocked() *LDAPError

func NewAccountLocking

func NewAccountLocking() *LDAPError

func NewAlreadyExists

func NewAlreadyExists() *LDAPError

func NewInsufficientAccess

func NewInsufficientAccess() *LDAPError

func NewInvalidCredentials

func NewInvalidCredentials() *LDAPError

func NewInvalidDNSyntax

func NewInvalidDNSyntax() *LDAPError

func NewInvalidPerSyntax

func NewInvalidPerSyntax(attr string, valueidx int) *LDAPError

func NewMoreThanOnceError

func NewMoreThanOnceError(attr string, valueidx int) *LDAPError

func NewMultipleValuesConstraintViolation

func NewMultipleValuesConstraintViolation(attr string) *LDAPError

func NewMultipleValuesProvidedError

func NewMultipleValuesProvidedError(attr string) *LDAPError

func NewNamingViolation

func NewNamingViolation(attrName string) *LDAPError

func NewNamingViolationForValue

func NewNamingViolationForValue(attrName string) *LDAPError

func NewNoGlobalSuperiorKnowledge

func NewNoGlobalSuperiorKnowledge() *LDAPError

func NewNoSuchAttribute

func NewNoSuchAttribute(op, attr string) *LDAPError

func NewNoSuchObject

func NewNoSuchObject() *LDAPError

func NewNoSuchObjectWithMatchedDN

func NewNoSuchObjectWithMatchedDN(dn string) *LDAPError

func NewNoUserModificationAllowedConstraintViolation

func NewNoUserModificationAllowedConstraintViolation(attr string) *LDAPError

func NewNotAllowedOnNonLeaf

func NewNotAllowedOnNonLeaf() *LDAPError

func NewObjectClassModsProhibited

func NewObjectClassModsProhibited(from, to string) *LDAPError

func NewObjectClassViolation

func NewObjectClassViolation() *LDAPError

func NewObjectClassViolationInvalidStructualChain

func NewObjectClassViolationInvalidStructualChain(oc1, oc2 string) *LDAPError

func NewObjectClassViolationNoStructural

func NewObjectClassViolationNoStructural() *LDAPError

func NewObjectClassViolationNotAllowed

func NewObjectClassViolationNotAllowed(attrName string) *LDAPError

func NewObjectClassViolationRequiresAttribute

func NewObjectClassViolationRequiresAttribute(objectClass, attrName string) *LDAPError

func NewOperationsError

func NewOperationsError() *LDAPError

func NewSuccess

func NewSuccess() *LDAPError

func NewTypeOrValueExists

func NewTypeOrValueExists(op, attr string, valueidx int) *LDAPError

func NewUnavailable

func NewUnavailable() *LDAPError

func NewUndefinedType

func NewUndefinedType(attr string) *LDAPError

func (*LDAPError) Error

func (e *LDAPError) Error() string

func (*LDAPError) IsAccountLocked

func (e *LDAPError) IsAccountLocked() bool

func (*LDAPError) IsAccountLocking

func (e *LDAPError) IsAccountLocking() bool

func (*LDAPError) IsAttributeOrValueExists

func (e *LDAPError) IsAttributeOrValueExists() bool

func (*LDAPError) IsInvalidCredentials

func (e *LDAPError) IsInvalidCredentials() bool

func (*LDAPError) IsNoSuchObject

func (e *LDAPError) IsNoSuchObject() bool

func (*LDAPError) Unwrap

func (e *LDAPError) Unwrap() error

type RetryError

type RetryError struct {
	// contains filtered or unexported fields
}

func (*RetryError) Error

func (e *RetryError) Error() string

func (*RetryError) Unwrap

func (e *RetryError) Unwrap() error

type SetString

type SetString struct {
	// contains filtered or unexported fields
}

func NewSetString

func NewSetString() *SetString

func (*SetString) Add

func (s *SetString) Add(str string)

func (*SetString) AddAll

func (s *SetString) AddAll(str []string)

func (*SetString) List

func (s *SetString) List() []string

type StringSet

type StringSet map[string]struct{}

func NewStringSet

func NewStringSet(str ...string) StringSet

func (StringSet) Add

func (s StringSet) Add(str string)

func (StringSet) AddAll

func (s StringSet) AddAll(str ...string)

func (StringSet) Contains

func (s StringSet) Contains(str string) bool

func (StringSet) First

func (s StringSet) First() string

func (StringSet) Size

func (s StringSet) Size() int

func (StringSet) Values

func (s StringSet) Values() []string

Jump to

Keyboard shortcuts

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