Documentation ¶
Index ¶
- type PolicyService
- func (p *PolicyService) AddPermissionsForRole(ctx context.Context, req *pb.PolicyPermissionsForRoleRequest) (*emptypb.Empty, error)
- func (p *PolicyService) AddPermissionsForUser(ctx context.Context, req *pb.PolicyPermissionsForUserRequest) (*emptypb.Empty, error)
- func (p *PolicyService) AddRolesForUser(ctx context.Context, req *pb.PolicyRolesForUserRequest) (*emptypb.Empty, error)
- func (p *PolicyService) Can(ctx context.Context, req *pb.PolicyCanRequest) (*emptypb.Empty, error)
- func (p *PolicyService) DeletePermissionsForRole(ctx context.Context, req *pb.PolicyPermissionsForRoleRequest) (*emptypb.Empty, error)
- func (p *PolicyService) DeletePermissionsForUser(ctx context.Context, req *pb.PolicyPermissionsForUserRequest) (*emptypb.Empty, error)
- func (p *PolicyService) DeleteRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*emptypb.Empty, error)
- func (p *PolicyService) DeleteRolesForUser(ctx context.Context, req *pb.PolicyRolesForUserRequest) (*emptypb.Empty, error)
- func (p *PolicyService) DeleteUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*emptypb.Empty, error)
- func (p *PolicyService) GetImplicitPermissionsForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyPermissionsResponse, error)
- func (p *PolicyService) GetImplicitPermissionsForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyPermissionsResponse, error)
- func (p *PolicyService) GetImplicitRolesForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyRolesResponse, error)
- func (p *PolicyService) GetImplicitUsersForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyUsersResponse, error)
- func (p *PolicyService) GetPermissionsForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyPermissionsResponse, error)
- func (p *PolicyService) GetPermissionsForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyPermissionsResponse, error)
- func (p *PolicyService) GetRolesForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyRolesResponse, error)
- func (p *PolicyService) GetUsersForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyUsersResponse, error)
- func (p *PolicyService) Has(ctx context.Context, req *pb.PolicyHasRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyService ¶
type PolicyService struct { pb.UnimplementedPolicyServer // contains filtered or unexported fields }
func NewPolicyService ¶
func NewPolicyService(enforcer *casbin.Enforcer) *PolicyService
func (*PolicyService) AddPermissionsForRole ¶
func (p *PolicyService) AddPermissionsForRole(ctx context.Context, req *pb.PolicyPermissionsForRoleRequest) (*emptypb.Empty, error)
func (*PolicyService) AddPermissionsForUser ¶
func (p *PolicyService) AddPermissionsForUser(ctx context.Context, req *pb.PolicyPermissionsForUserRequest) (*emptypb.Empty, error)
func (*PolicyService) AddRolesForUser ¶
func (p *PolicyService) AddRolesForUser(ctx context.Context, req *pb.PolicyRolesForUserRequest) (*emptypb.Empty, error)
func (*PolicyService) Can ¶
func (p *PolicyService) Can(ctx context.Context, req *pb.PolicyCanRequest) (*emptypb.Empty, error)
func (*PolicyService) DeletePermissionsForRole ¶
func (p *PolicyService) DeletePermissionsForRole(ctx context.Context, req *pb.PolicyPermissionsForRoleRequest) (*emptypb.Empty, error)
func (*PolicyService) DeletePermissionsForUser ¶
func (p *PolicyService) DeletePermissionsForUser(ctx context.Context, req *pb.PolicyPermissionsForUserRequest) (*emptypb.Empty, error)
func (*PolicyService) DeleteRole ¶
func (p *PolicyService) DeleteRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*emptypb.Empty, error)
func (*PolicyService) DeleteRolesForUser ¶
func (p *PolicyService) DeleteRolesForUser(ctx context.Context, req *pb.PolicyRolesForUserRequest) (*emptypb.Empty, error)
func (*PolicyService) DeleteUser ¶
func (p *PolicyService) DeleteUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*emptypb.Empty, error)
func (*PolicyService) GetImplicitPermissionsForRole ¶
func (p *PolicyService) GetImplicitPermissionsForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyPermissionsResponse, error)
func (*PolicyService) GetImplicitPermissionsForUser ¶
func (p *PolicyService) GetImplicitPermissionsForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyPermissionsResponse, error)
func (*PolicyService) GetImplicitRolesForUser ¶
func (p *PolicyService) GetImplicitRolesForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyRolesResponse, error)
func (*PolicyService) GetImplicitUsersForRole ¶
func (p *PolicyService) GetImplicitUsersForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyUsersResponse, error)
func (*PolicyService) GetPermissionsForRole ¶
func (p *PolicyService) GetPermissionsForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyPermissionsResponse, error)
func (*PolicyService) GetPermissionsForUser ¶
func (p *PolicyService) GetPermissionsForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyPermissionsResponse, error)
func (*PolicyService) GetRolesForUser ¶
func (p *PolicyService) GetRolesForUser(ctx context.Context, req *pb.PolicyUsersResponse_Item) (*pb.PolicyRolesResponse, error)
func (*PolicyService) GetUsersForRole ¶
func (p *PolicyService) GetUsersForRole(ctx context.Context, req *pb.PolicyRolesResponse_Item) (*pb.PolicyUsersResponse, error)
func (*PolicyService) Has ¶
func (p *PolicyService) Has(ctx context.Context, req *pb.PolicyHasRequest) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.