Documentation ¶
Index ¶
- type Backend
- type DummyStore
- type EncryptedStore
- type Secrets
- type Store
- type User
- type UserManager
- func (a *UserManager) AddUser(user, password, responsible string) error
- func (a *UserManager) Authenticate(username, password string) (*User, error)
- func (a *UserManager) Delete(user, responsible string) error
- func (a *UserManager) Empty() bool
- func (a *UserManager) SetPassword(user, password, responsible string) error
- func (a *UserManager) User(username string) *User
- func (a *UserManager) Users() []*User
- type UserSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyStore ¶
type DummyStore struct{}
func (DummyStore) GetSettings ¶
func (d DummyStore) GetSettings(name string, _ interface{}) error
func (DummyStore) PutSettings ¶
func (d DummyStore) PutSettings(string, string, string, interface{}) error
type EncryptedStore ¶
type EncryptedStore struct {
// contains filtered or unexported fields
}
func (EncryptedStore) GetSettings ¶
func (c EncryptedStore) GetSettings(name string, val interface{}) error
func (EncryptedStore) PutSettings ¶
func (c EncryptedStore) PutSettings(name, user, message string, val interface{}) error
type Secrets ¶
func LoadSecrets ¶
type Store ¶
type UserManager ¶
type UserManager struct {
// contains filtered or unexported fields
}
func NewUserManager ¶
func NewUserManager(store Store) (*UserManager, error)
func (*UserManager) AddUser ¶
func (a *UserManager) AddUser(user, password, responsible string) error
func (*UserManager) Authenticate ¶
func (a *UserManager) Authenticate(username, password string) (*User, error)
func (*UserManager) Delete ¶
func (a *UserManager) Delete(user, responsible string) error
func (*UserManager) Empty ¶
func (a *UserManager) Empty() bool
func (*UserManager) SetPassword ¶
func (a *UserManager) SetPassword(user, password, responsible string) error
func (*UserManager) User ¶
func (a *UserManager) User(username string) *User
func (*UserManager) Users ¶
func (a *UserManager) Users() []*User
type UserSettings ¶
type UserSettings struct {
Users []*User
}
Click to show internal directories.
Click to hide internal directories.