services

package
v0.0.0-...-d36ff20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 (*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 (*PolicyService) DeleteRolesForUser

func (p *PolicyService) DeleteRolesForUser(ctx context.Context, req *pb.PolicyRolesForUserRequest) (*emptypb.Empty, error)

func (*PolicyService) DeleteUser

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 (*PolicyService) GetPermissionsForUser

func (*PolicyService) GetRolesForUser

func (*PolicyService) GetUsersForRole

func (*PolicyService) Has

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL