Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintUsage ¶
func PrintUsage(prefix string)
Types ¶
type Auth ¶ added in v1.0.0
type Auth struct {
Method AuthMethod `default:"none" desc:"auth method: none|static|ldap"`
Static Static
Ldap Ldap
}
type AuthMethod ¶ added in v1.0.0
type AuthMethod string
func (*AuthMethod) Decode ¶ added in v1.0.0
func (a *AuthMethod) Decode(value string) error
func (*AuthMethod) String ¶ added in v1.0.0
func (a *AuthMethod) String() string
type Config ¶
type Ldap ¶
type Ldap struct {
Url string `desc:"ldap url. example: ldaps://example.com:636"`
BindUser string `desc:"ldap bind user. example: uid=bind,cn=users,cn=accounts,dc=example,dc=com"`
BindPass string `desc:"ldap bind pass"`
BaseDn string `desc:"ldap search base dn. example: cn=users,cn=accounts,dc=example,DC=com"`
Filter string `desc:"ldap search filter. example: (&(uid=%s)(memberOf=cn=devops,cn=groups,cn=accounts,dc=example,dc=com))"`
}
Click to show internal directories.
Click to hide internal directories.