Documentation ¶
Index ¶
- Constants
- type Backend
- func NewBackend(conf *Config, prom prometheus.Registerer, infoLog, dbgLog *log.Logger) (Backend, error)
- func NewLDAPBackend(conf *LDAPConfig, prom prometheus.Registerer, infoLog, dbgLog *log.Logger) (Backend, error)
- func NewStaticBackend(conf *StaticConfig, prom prometheus.Registerer, infoLog, dbgLog *log.Logger) (Backend, error)
- func NewWhawtyAuthBackend(conf *WhawtyAuthConfig, prom prometheus.Registerer, ...) (Backend, error)
- type Config
- type LDAPBackend
- type LDAPConfig
- type NullBackend
- type StaticBackend
- type StaticConfig
- type WhawtyAuthBackend
- type WhawtyAuthConfig
Constants ¶
View Source
const (
MaxConcurrentRemoteUpgrades = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
func NewBackend ¶
func NewBackend(conf *Config, prom prometheus.Registerer, infoLog, dbgLog *log.Logger) (Backend, error)
func NewLDAPBackend ¶
func NewLDAPBackend(conf *LDAPConfig, prom prometheus.Registerer, infoLog, dbgLog *log.Logger) (Backend, error)
func NewStaticBackend ¶
func NewStaticBackend(conf *StaticConfig, prom prometheus.Registerer, infoLog, dbgLog *log.Logger) (Backend, error)
func NewWhawtyAuthBackend ¶
func NewWhawtyAuthBackend(conf *WhawtyAuthConfig, prom prometheus.Registerer, infoLog, dbgLog *log.Logger) (Backend, error)
type Config ¶
type Config struct { LDAP *LDAPConfig `yaml:"ldap"` Static *StaticConfig `yaml:"static"` Whawty *WhawtyAuthConfig `yaml:"whawty"` }
type LDAPBackend ¶
type LDAPBackend struct {
// contains filtered or unexported fields
}
func (*LDAPBackend) Authenticate ¶
func (b *LDAPBackend) Authenticate(username, password string) (err error)
type LDAPConfig ¶
type LDAPConfig struct { Servers []string `yaml:"servers"` RootDN string `yaml:"root-dn"` ManagerDN string `yaml:"manager-dn"` ManagerPassword string `yaml:"manager-password"` UserSearchBase string `yaml:"user-search-base"` UserSearchFilter string `yaml:"user-search-filter"` UserDNTemplate string `yaml:"user-dn-template"` StartTLS bool `yaml:"start-tls"` TLS *tlsconfig.TLSConfig `yaml:"tls"` }
type NullBackend ¶
type NullBackend struct { }
func (*NullBackend) Authenticate ¶
func (b *NullBackend) Authenticate(username, password string) error
type StaticBackend ¶
type StaticBackend struct {
// contains filtered or unexported fields
}
func (*StaticBackend) Authenticate ¶
func (b *StaticBackend) Authenticate(username, password string) error
type StaticConfig ¶
type WhawtyAuthBackend ¶
type WhawtyAuthBackend struct {
// contains filtered or unexported fields
}
func (*WhawtyAuthBackend) Authenticate ¶
func (b *WhawtyAuthBackend) Authenticate(username, password string) error
Click to show internal directories.
Click to hide internal directories.