Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authz ¶
type Authz struct {
// contains filtered or unexported fields
}
func New ¶
func New( log log.Logger, next http.Handler, userIDHeaderKey string, resourceService ResourceService, userService UserService, groupService GroupService) *Authz
func (Authz) Info ¶
func (c Authz) Info() *middleware.MiddlewareInfo
type Config ¶
type Config struct { Actions []string `yaml:"actions" mapstructure:"actions"` Permissions []Permission `yaml:"permissions" mapstructure:"permissions"` Attributes map[string]middleware.Attribute `yaml:"attributes" mapstructure:"attributes"` }
type GroupService ¶ added in v0.6.6
type Permission ¶
type Permission struct { Name string `yaml:"name" mapstructure:"name"` Namespace string `yaml:"namespace" mapstructure:"namespace"` Attribute string `yaml:"attribute" mapstructure:"attribute"` Expression expression.Expression `yaml:"expression" mapstructure:"expression"` }
type ResourceService ¶
Click to show internal directories.
Click to hide internal directories.