Versions in this module Expand all Collapse all v0 v0.1.2 Apr 30, 2021 Changes in this version + const Group + const Read + const User + const Write + type Authorizer interface + Authorize func(subject string, groups []string, permission Permission, ...) (int, bool) + func NewAuthorizer(roles []Role, roleBindings []RoleBinding) Authorizer + func Parse(r io.Reader) (Authorizer, error) + type Permission string + type Role struct + Name string + Permissions []Permission + Resources []string + Tenants []string + type RoleBinding struct + Name string + Roles []string + Subjects []Subject + type Subject struct + Kind SubjectKind + Name string + type SubjectKind string