Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotChecked = "not checked" ResourceFormatErr = "format error" AnonymousUser = "anonymous user" InternalError = "internal error" MemberNotExist = "member not exist" RoleNotExist = "role not exist" AdminAllow = "admin allows everything" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorizer ¶
type Authorizer interface {
Authorize(ctx context.Context, attributes auth.Attributes) (auth.Decision, string, error)
}
Authorizer use the basic rbac rules to check if the user have the permissions
func NewAuthorizer ¶
func NewAuthorizer(roleservice role.Service, memberservice memberservice.Service) Authorizer
type VisitorFunc ¶
Click to show internal directories.
Click to hide internal directories.