Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescribeLDAPConfig ¶
DescribeLDAPConfig 描述配置
func NewDescribeLDAPConfigWithBaseDN ¶
func NewDescribeLDAPConfigWithBaseDN(baseDN string) *DescribeLDAPConfig
NewDescribeLDAPConfigWithBaseDN todo
func NewDescribeLDAPConfigWithDomain ¶
func NewDescribeLDAPConfigWithDomain(domain string) *DescribeLDAPConfig
NewDescribeLDAPConfigWithDomain todo
type LDAP ¶
type LDAP interface {
SaveConfig(*SaveLDAPConfigRequest) (*LDAPConfig, error)
QueryConfig(*QueryLDAPConfigRequest) (*LDAPSet, error)
DescribeConfig(*DescribeLDAPConfig) (*LDAPConfig, error)
DeleteConfig(*DeleteLDAPConfig) error
CheckConnect(*DescribeLDAPConfig) error
}
LDAP todo
type LDAPConfig ¶
type LDAPConfig struct {
Domain string `bson:"_id" json:"domain,omitempty"` // 所属域ID
Creater string `bson:"creater" json:"creater,omitempty"` // 创建人
CreateAt ftime.Time `bson:"create_at" json:"create_at,omitempty"` // 创建时间
UpdateAt ftime.Time `bson:"update_at" json:"update_at,omitempty"` // 更新时间
*SaveLDAPConfigRequest `bson:",inline"`
}
LDAPConfig todo
func NewLDAPConfig ¶
func NewLDAPConfig(req *SaveLDAPConfigRequest) (*LDAPConfig, error)
NewLDAPConfig todo
type LDAPSet ¶
type LDAPSet struct {
*request.PageRequest
Total int64 `json:"total"`
Items []*LDAPConfig `json:"items"`
}
LDAPSet 列表
type QueryLDAPConfigRequest ¶
type QueryLDAPConfigRequest struct {
*session.Session
*request.PageRequest
}
QueryLDAPConfigRequest 查询LDAP配置
func NewQueryLDAPConfigRequest ¶
func NewQueryLDAPConfigRequest(pageReq *request.PageRequest) *QueryLDAPConfigRequest
NewQueryLDAPConfigRequest todo
type SaveLDAPConfigRequest ¶
type SaveLDAPConfigRequest struct {
Enabled bool `bson:"enabled" json:"enabled"`
*ldap.Config `bson:",inline"`
*session.Session `bson:"-" json:"-"`
*dryrun.DryRun `bson:"-" json:"-"`
}
SaveLDAPConfigRequest todo
func NewSaveLDAPConfigRequest ¶
func NewSaveLDAPConfigRequest() *SaveLDAPConfigRequest
NewSaveLDAPConfigRequest todo
func (*SaveLDAPConfigRequest) Validate ¶
func (req *SaveLDAPConfigRequest) Validate() error
Validate todo
Click to show internal directories.
Click to hide internal directories.