Documentation ¶
Index ¶
- Variables
- type YAMLAuthFile
- func (self *YAMLAuthFile) CheckUserPasswordMatch(user, password string) (ok bool, err error)
- func (self *YAMLAuthFile) Load() error
- func (self *YAMLAuthFile) LoadIfChanged() (bool, error)
- func (self *YAMLAuthFile) PutRecord(r *YAMLAuthFileSRecord)
- func (self *YAMLAuthFile) RemoveRecord(name string)
- func (self *YAMLAuthFile) Save() error
- func (self *YAMLAuthFile) UserByKey(key string) (user string, err error)
- type YAMLAuthFileS
- type YAMLAuthFileSRecord
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERR_NOT_FOUND = errors.New("not found") ERR_PASSWORD_NOT_SET = errors.New("password not sed") )
Functions ¶
This section is empty.
Types ¶
type YAMLAuthFile ¶
type YAMLAuthFile struct {
// contains filtered or unexported fields
}
func NewYAMLAuthFile ¶
func NewYAMLAuthFile(filename string) *YAMLAuthFile
func (*YAMLAuthFile) CheckUserPasswordMatch ¶
func (self *YAMLAuthFile) CheckUserPasswordMatch(user, password string) (ok bool, err error)
func (*YAMLAuthFile) Load ¶
func (self *YAMLAuthFile) Load() error
func (*YAMLAuthFile) LoadIfChanged ¶
func (self *YAMLAuthFile) LoadIfChanged() (bool, error)
func (*YAMLAuthFile) PutRecord ¶
func (self *YAMLAuthFile) PutRecord(r *YAMLAuthFileSRecord)
func (*YAMLAuthFile) RemoveRecord ¶
func (self *YAMLAuthFile) RemoveRecord(name string)
func (*YAMLAuthFile) Save ¶
func (self *YAMLAuthFile) Save() error
type YAMLAuthFileS ¶
type YAMLAuthFileS struct {
Records []*YAMLAuthFileSRecord
}
type YAMLAuthFileSRecord ¶
Click to show internal directories.
Click to hide internal directories.