Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func NewAuthorizer ¶
func NewAuthorizer(configDir string) *Authorizer
func (*Authorizer) Load ¶
func (a *Authorizer) Load() error
type Htpasswd ¶
type Htpasswd struct {
// contains filtered or unexported fields
}
func NewHtpasswd ¶
func NewHtpasswd() Htpasswd
type ParsedAuthConfig ¶
type ParsedAuthConfig struct {
Users map[User][]Role
Roles map[string]Permissions
}
type Permission ¶
func (*Permission) Match ¶
func (p *Permission) Match(resource, action string) bool
type Permissions ¶
type Permissions struct {
Endpoints []Permission
Tasks []Permission
}
Click to show internal directories.
Click to hide internal directories.