Documentation
¶
Index ¶
- Constants
- func Loader(unmarshal auth.YAMLUnmarshaler, config_dir string) (auth.Authenticator, error)
- func ToFile(a *SimpleUserAuthenticator, path string) (err error)
- type Config
- type PermissionTable
- type SimpleUserAuthenticator
- func (a *SimpleUserAuthenticator) AddPermission(user string, password string, domain string) (err error)
- func (a *SimpleUserAuthenticator) Close() (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 UserTable
Constants ¶
View Source
const SimpleAuth = auth.Type("simpleauth")
Variables ¶
This section is empty.
Functions ¶
func Loader ¶ added in v0.0.64
func Loader(unmarshal auth.YAMLUnmarshaler, config_dir string) (auth.Authenticator, error)
func ToFile ¶ added in v0.0.64
func ToFile(a *SimpleUserAuthenticator, path string) (err error)
Types ¶
type PermissionTable ¶
type SimpleUserAuthenticator ¶
type SimpleUserAuthenticator struct {
Permissions PermissionTable
}
func FromConfig ¶ added in v0.0.64
func FromConfig(config Config) (*SimpleUserAuthenticator, error)
func FromFile ¶ added in v0.0.64
func FromFile(path string) (*SimpleUserAuthenticator, error)
func (*SimpleUserAuthenticator) AddPermission ¶
func (a *SimpleUserAuthenticator) AddPermission(user string, password string, domain string) (err error)
func (*SimpleUserAuthenticator) Close ¶ added in v0.0.64
func (a *SimpleUserAuthenticator) Close() (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)
Click to show internal directories.
Click to hide internal directories.