Documentation
¶
Index ¶
Constants ¶
View Source
const AnonymousPrincipalUsername = "anonymous"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
Authorizer provides either full (admin) or no access
type Config ¶
type Config struct {
Enabled bool `json:"enabled" yaml:"enabled"`
Users []string `json:"users" yaml:"users"`
ReadOnlyUsers []string `json:"read_only_users" yaml:"read_only_users"`
Groups []string `json:"groups" yaml:"groups"`
ReadOnlyGroups []string `json:"read_only_groups" yaml:"read_only_groups"`
}
Config makes every subject on the list an admin, whereas everyone else has no rights whatsoever
Click to show internal directories.
Click to hide internal directories.