Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2022 Changes in this version + const ResourcePermission + const ResourceRole + const ResourceUser + const ServiceName + var GrpcProviderSet = wire.NewSet(NewUserTenantContrib, NewRefreshProvider, NewRemotePermissionChecker, ...) + func NewAccountGrpcClient(conn GrpcConn) v13.AccountServer + func NewAuthGrpcClient(conn GrpcConn) v12.AuthServer + func NewPermissionGrpcClient(conn GrpcConn) v15.PermissionServiceServer + func NewRefreshProvider(srv v1.AuthServer, logger klog.Logger) session.RefreshTokenProvider + func NewRoleGrpcClient(conn GrpcConn) v14.RoleServiceServer + func NewUserGrpcClient(conn GrpcConn) v1.UserServiceServer + type GrpcConn grpc.ClientConnInterface + func NewGrpcConn(clientName api.ClientName, services *conf.Services, dis registry.Discovery, ...) (GrpcConn, func()) + type HttpClient *http.Client + type PermissionChecker struct + func NewRemotePermissionChecker(srv v1.PermissionServiceServer) *PermissionChecker + func (r *PermissionChecker) AddGrant(ctx context.Context, resource authz.Resource, action authz.Action, ...) error + func (r *PermissionChecker) IsGrantTenant(ctx context.Context, requirements authz.RequirementList, tenantID string, ...) ([]authz.Effect, error) + func (r *PermissionChecker) ListAcl(ctx context.Context, subjects ...authz.Subject) ([]authz.PermissionBean, error) + func (r *PermissionChecker) RemoveGrant(ctx context.Context, subject authz.Subject, filter ...authz.FilterFunc) error + func (r *PermissionChecker) UpdateGrant(ctx context.Context, subject authz.Subject, ...) error + type UserTenantContrib struct + func NewUserTenantContrib(client v1.UserServiceServer) *UserTenantContrib + func (u *UserTenantContrib) Name() string + func (u *UserTenantContrib) Resolve(trCtx *saas.Context) error