Documentation ¶
Index ¶
- Constants
- type Etcd
- func (t *Etcd) AddOrUpdateUser(username string, password string) (err error)
- func (t *Etcd) Authenticate(username string, password string) bool
- func (t *Etcd) Rights(username string) (rights string)
- func (t *Etcd) SetRights(username string, rights string) (err error)
- func (t *Etcd) User(username string) (u auth.User, err error)
- func (t *Etcd) UserExists(username string) bool
Constants ¶
View Source
const NO_RIGHTS = "^$"
String to represent no user rights
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
Authentication with ETCD backend
func (*Etcd) AddOrUpdateUser ¶
AddOrUdpdateUser adds or updates a user's password, storing a hash of the password in etcd under /passwd/<usename>
func (*Etcd) Authenticate ¶
Authenticate checks the given password with the hashed version stored in etcd
func (*Etcd) UserExists ¶
UserExists returns true if the user exists and false for anything else
Click to show internal directories.
Click to hide internal directories.