Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// hash of the source policy yaml file (to check for diffs)
SourcePolicyHash string `json:"source_policy_hash"`
// role name to the permissions granted by the role
Roles map[string]set `json:"roles,omitempty"`
// user name to resource permissions
Users map[string]resourcePermissions `json:"users,omitempty"`
// group name to resource permissions
Groups map[string]resourcePermissions `json:"groups,omitempty"`
}
Authorizer maintains the compiled authorization data
type Policy ¶
type Policy struct {
Roles map[string]RoleDefinition `yaml:"roles,omitempty"`
Resources map[string]RoleMap `yaml:"resources,omitempty"`
}
Policy represents how policies are defined
type RoleDefinition ¶
type RoleDefinition struct {
Permissions []string `yaml:"permissions,omitempty"`
Extends []string `yaml:"extends,omitempty"`
}
RoleDefinition represents how a role is defined
Click to show internal directories.
Click to hide internal directories.