Documentation ¶
Index ¶
- Variables
- func ValidateUsername(username string) bool
- type Action
- type Handle
- type Policy
- type RTxn
- type Txn
- func (tx *Txn) AddUser(u *User) error
- func (tx *Txn) Complete()
- func (tx *Txn) DeleteAccessPolicy(name string) error
- func (tx *Txn) DeleteUser(username string) error
- func (tx *Txn) FindUser(username string) (user User, found bool)
- func (tx *Txn) NumUsers() int
- func (tx *Txn) PutAccessPolicy(p *Policy) error
- func (tx *Txn) UpdateUser(username string, f func(u *User)) error
- type User
- type Verb
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExists = errors.New("already exists")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func ValidateUsername ¶
Types ¶
type Handle ¶
type Handle struct { GetCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error) // contains filtered or unexported fields }
type RTxn ¶
type RTxn struct {
// contains filtered or unexported fields
}
func (*RTxn) FetchAllPolicies ¶
func (*RTxn) FetchAllUsers ¶
func (*RTxn) GetPolicies ¶
type Txn ¶
type Txn struct {
// contains filtered or unexported fields
}
func (*Txn) DeleteAccessPolicy ¶
func (*Txn) DeleteUser ¶
func (*Txn) PutAccessPolicy ¶
Click to show internal directories.
Click to hide internal directories.