Versions in this module Expand all Collapse all v0 v0.16.0 Dec 11, 2024 Changes in this version + const AdminPermission + const AdministratorRelation + const ChannelType + const ChannelsKind + const ClientType + const ClientsKind + const ContributorRelation + const CreatePermission + const DeletePermission + const DomainRelation + const DomainType + const DomainsKind + const EditPermission + const EditorRelation + const GroupRelation + const GroupType + const GroupsKind + const GuestRelation + const MemberRelation + const MembershipPermission + const NewChannelKind + const NewClientKind + const NewGroupKind + const ParentGroupRelation + const PlatformKind + const PlatformRelation + const PlatformType + const PublishPermission + const RoleGroupRelation + const RoleType + const SharePermission + const SubscribePermission + const SuperMQObject + const TokenKind + const UserType + const UsersKind + const ViewPermission + func EncodeDomainUserID(domainID, userID string) string + type Evaluator interface + CheckPolicy func(ctx context.Context, pr Policy) error + type Permissions []string + type Policy struct + Domain string + Object string + ObjectKind string + ObjectPrefix string + ObjectType string + Permission string + Relation string + Subject string + SubjectKind string + SubjectRelation string + SubjectType string + func (pr Policy) String() string + type PolicyPage struct + NextPageToken string + Policies []string + type Service interface + AddPolicies func(ctx context.Context, prs []Policy) error + AddPolicy func(ctx context.Context, pr Policy) error + CountObjects func(ctx context.Context, pr Policy) (uint64, error) + CountSubjects func(ctx context.Context, pr Policy) (uint64, error) + DeletePolicies func(ctx context.Context, prs []Policy) error + DeletePolicyFilter func(ctx context.Context, pr Policy) error + ListAllObjects func(ctx context.Context, pr Policy) (PolicyPage, error) + ListAllSubjects func(ctx context.Context, pr Policy) (PolicyPage, error) + ListObjects func(ctx context.Context, pr Policy, nextPageToken string, limit uint64) (PolicyPage, error) + ListPermissions func(ctx context.Context, pr Policy, permissionsFilter []string) (Permissions, error) + ListSubjects func(ctx context.Context, pr Policy, nextPageToken string, limit uint64) (PolicyPage, error)