Documentation ¶
Index ¶
- func Initialize(sugar *zap.SugaredLogger)
- type Config
- type Credential
- type Handler
- type Member
- func (m *Member) AddParent(p *Member)
- func (m *Member) Dn() (dn string)
- func (m *Member) GetMType() (mt MemberType)
- func (m *Member) MembershipTree() (mss Memberships)
- func (m *Member) Name() (name string)
- func (m *Member) Pair() (pair string)
- func (m *Member) SetFromId(Id string) (err error)
- func (m *Member) SetMType(mt MemberType) (err error)
- type MemberType
- type Members
- type Membership
- type Memberships
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(sugar *zap.SugaredLogger)
Types ¶
type Config ¶
type Config struct { Usr Credential `yaml:"user"` Pwd Credential `yaml:"password"` Servers []string `yaml:"servers"` MaxRetries int `yaml:"conn_retries"` }
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type Credential ¶
type Credential struct { Value string `yaml:"value"` File string `yaml:"file"` Base64 bool `yaml:"base64"` }
func (*Credential) GetCred ¶
func (c *Credential) GetCred() (value string, err error)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewLdapHandler ¶
type Member ¶
type Member struct {
// contains filtered or unexported fields
}
func (*Member) GetMType ¶
func (m *Member) GetMType() (mt MemberType)
func (*Member) MembershipTree ¶
func (m *Member) MembershipTree() (mss Memberships)
func (*Member) SetFromId ¶
SetFromId allows dn, id, and name to be set if they are not set yet, but determines it makes sense before doing so
func (*Member) SetMType ¶
func (m *Member) SetMType(mt MemberType) (err error)
type MemberType ¶
type MemberType int
const ( GroupMType MemberType = iota UserMType UnknownMType )
func GetMemberType ¶
func GetMemberType(key string) (mt MemberType)
type Membership ¶
type Memberships ¶
type Memberships []Membership
Click to show internal directories.
Click to hide internal directories.