Documentation
¶
Index ¶
- Variables
- type PermissionTable
- type SimpleUserAuthenticator
- func (a *SimpleUserAuthenticator) AddPermission(user string, password string, domain string) (err error)
- func (a *SimpleUserAuthenticator) Load(f io.Reader) (err error)
- func (a *SimpleUserAuthenticator) RemovePermission(user string, domain string) (err error)
- func (a *SimpleUserAuthenticator) Save(w io.Writer) (err error)
- func (a *SimpleUserAuthenticator) VerifyPermissions(user string, password string, domain string) (err error)
- type UserAuthenticator
- type UserTable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownDomain = errors.New("unknown domain") ErrUnknownUser = errors.New("unknown user") )
Functions ¶
This section is empty.
Types ¶
type PermissionTable ¶
type SimpleUserAuthenticator ¶
type SimpleUserAuthenticator struct {
Permissions PermissionTable
}
func (*SimpleUserAuthenticator) AddPermission ¶
func (a *SimpleUserAuthenticator) AddPermission(user string, password string, domain string) (err error)
func (*SimpleUserAuthenticator) Load ¶
func (a *SimpleUserAuthenticator) Load(f io.Reader) (err error)
func (*SimpleUserAuthenticator) RemovePermission ¶
func (a *SimpleUserAuthenticator) RemovePermission(user string, domain string) (err error)
func (*SimpleUserAuthenticator) Save ¶
func (a *SimpleUserAuthenticator) Save(w io.Writer) (err error)
func (*SimpleUserAuthenticator) VerifyPermissions ¶
func (a *SimpleUserAuthenticator) VerifyPermissions(user string, password string, domain string) (err error)
type UserAuthenticator ¶
Click to show internal directories.
Click to hide internal directories.