Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompiledPolicy ¶
type CompiledPolicy struct {
StaticRules map[string]map[string]bool
DynamicRules []DynamicRule
// contains filtered or unexported fields
}
CompiledPolicy holds pre-compiled authorization rules for a resource type.
type DynamicRule ¶
type DynamicRule struct {
FieldIndex int
Actions []string
FieldType reflect.Type
FieldKind reflect.Kind
}
DynamicRule maps a dynamic role field to the actions it governs.
Click to show internal directories.
Click to hide internal directories.