provider

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "provider"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteLDAPConfig

type DeleteLDAPConfig struct {
	ID string
}

DeleteLDAPConfig todo

type DescribeLDAPConfig

type DescribeLDAPConfig struct {
	Domain string
	BaseDN string
}

DescribeLDAPConfig 描述配置

func NewDescribeLDAPConfigWithBaseDN

func NewDescribeLDAPConfigWithBaseDN(baseDN string) *DescribeLDAPConfig

NewDescribeLDAPConfigWithBaseDN todo

func NewDescribeLDAPConfigWithDomain

func NewDescribeLDAPConfigWithDomain(domain string) *DescribeLDAPConfig

NewDescribeLDAPConfigWithDomain todo

func (*DescribeLDAPConfig) Validate

func (req *DescribeLDAPConfig) Validate() error

Validate 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 NewDefaultLDAPConfig

func NewDefaultLDAPConfig() *LDAPConfig

NewDefaultLDAPConfig todo

func NewLDAPConfig

func NewLDAPConfig(req *SaveLDAPConfigRequest) (*LDAPConfig, error)

NewLDAPConfig todo

func (*LDAPConfig) Merge

func (ldap *LDAPConfig) Merge(data *LDAPConfig)

Merge todo

type LDAPSet

type LDAPSet struct {
	*request.PageRequest

	Total int64         `json:"total"`
	Items []*LDAPConfig `json:"items"`
}

LDAPSet 列表

func NewLDAPSet

func NewLDAPSet(req *request.PageRequest) *LDAPSet

NewLDAPSet 实例化

func (*LDAPSet) Add

func (s *LDAPSet) Add(item *LDAPConfig)

Add 添加应用

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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