Documentation ¶
Index ¶
- type RbacManagerServer
- type RbacServiceServer
- func (svr *RbacServiceServer) Check(ctx context.Context, in *pb.RbacRequest) (*pb.RbacReply, error)
- func (svr *RbacServiceServer) CheckApplicant(uid float64) bool
- func (svr *RbacServiceServer) CheckPolicy(uid float64, target, action string) bool
- func (svr *RbacServiceServer) DeletePolicy(ctx context.Context, in *pb.DeletePolicyRequest) (*pb.DeletePolicyReply, error)
- func (svr *RbacServiceServer) DeleteProject(ctx context.Context, in *pb.DeleteProjectRequest) (*pb.DeleteProjectReply, error)
- func (svr *RbacServiceServer) DeleteRole(ctx context.Context, in *pb.DeleteRoleRequest) (*pb.DeleteRoleReply, error)
- func (svr *RbacServiceServer) DeleteUser(ctx context.Context, in *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
- func (svr *RbacServiceServer) GetDockerfiles(ctx context.Context, in *pb.GetDockerfilesRequest) (*pb.GetDockerfilesReply, error)
- func (svr *RbacServiceServer) GetPolicies(ctx context.Context, in *pb.GetPoliciesRequest) (*pb.GetPoliciesReply, error)
- func (svr *RbacServiceServer) GetPolicy(ctx context.Context, in *pb.GetPolicyRequest) (*pb.GetPolicyReply, error)
- func (svr *RbacServiceServer) GetPolicyJson(ctx context.Context, in *pb.GetPolicyJsonRequest) (*pb.GetPolicyJsonReply, error)
- func (svr *RbacServiceServer) GetProjects(ctx context.Context, in *pb.GetProjectsRequest) (*pb.GetProjectsReply, error)
- func (svr *RbacServiceServer) GetRole(ctx context.Context, in *pb.GetRoleRequest) (*pb.GetRoleReply, error)
- func (svr *RbacServiceServer) GetRoles(ctx context.Context, in *pb.GetRolesRequest) (*pb.GetRolesReply, error)
- func (svr *RbacServiceServer) GetTraceId(ctx context.Context, in *pb.GetTraceIdRequest) (*pb.GetTraceIdReply, error)
- func (svr *RbacServiceServer) GetTraceIdByDockerfileId(ctx context.Context, in *pb.GetTraceIdByDockerfileIdRequest) (*pb.GetTraceIdByDockerfileIdReply, error)
- func (svr *RbacServiceServer) GetUsers(ctx context.Context, in *pb.GetUsersRequest) (*pb.GetUsersReply, error)
- func (svr *RbacServiceServer) GetUsersInProject(ctx context.Context, in *pb.GetUsersInProjectRequest) (*pb.GetUsersInProjectReply, error)
- func (svr *RbacServiceServer) IsUserExist(ctx context.Context, in *pb.IsUserExistRequest) (*pb.IsUserExistReply, error)
- func (svr *RbacServiceServer) PostDockerfile(ctx context.Context, in *pb.PostDockerfileRequest) (*emptypb.Empty, error)
- func (svr *RbacServiceServer) PostPolicy(ctx context.Context, in *pb.PostPolicyRequest) (*emptypb.Empty, error)
- func (svr *RbacServiceServer) PostProject(ctx context.Context, in *pb.PostProjectRequest) (*pb.PostProjectReply, error)
- func (svr *RbacServiceServer) PostRole(ctx context.Context, in *pb.PostRoleRequest) (*pb.PostRoleReply, error)
- func (svr *RbacServiceServer) PostUser(ctx context.Context, in *pb.PostUserRequest) (*emptypb.Empty, error)
- func (svr *RbacServiceServer) PutUser(ctx context.Context, in *pb.PutUserRequest) (*pb.PutUserReply, error)
- func (svr *RbacServiceServer) UpdatePolicy(ctx context.Context, in *pb.UpdatePolicyRequest) (*pb.UpdatePolicyReply, error)
- func (svr *RbacServiceServer) UpdateRole(ctx context.Context, in *pb.UpdateRoleRequest) (*pb.UpdateRoleReply, error)
- func (svr *RbacServiceServer) UpdateUserRole(ctx context.Context, in *pb.UpdateUserRoleRequest) (*pb.UpdateUserRoleReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RbacManagerServer ¶
func NewServer ¶
func NewServer(port int) *RbacManagerServer
func (*RbacManagerServer) Run ¶
func (svr *RbacManagerServer) Run()
func (*RbacManagerServer) Stop ¶
func (svr *RbacManagerServer) Stop() error
type RbacServiceServer ¶
type RbacServiceServer struct { pb.UnimplementedRbacServiceServer StorageClient storage.StorageClient TraceClient *trace.TraceClient GitClient *git.RbacGitClient }
func (*RbacServiceServer) Check ¶
func (svr *RbacServiceServer) Check(ctx context.Context, in *pb.RbacRequest) (*pb.RbacReply, error)
func (*RbacServiceServer) CheckApplicant ¶
func (svr *RbacServiceServer) CheckApplicant(uid float64) bool
func (*RbacServiceServer) CheckPolicy ¶
func (svr *RbacServiceServer) CheckPolicy(uid float64, target, action string) bool
func (*RbacServiceServer) DeletePolicy ¶
func (svr *RbacServiceServer) DeletePolicy(ctx context.Context, in *pb.DeletePolicyRequest) (*pb.DeletePolicyReply, error)
func (*RbacServiceServer) DeleteProject ¶
func (svr *RbacServiceServer) DeleteProject(ctx context.Context, in *pb.DeleteProjectRequest) (*pb.DeleteProjectReply, error)
func (*RbacServiceServer) DeleteRole ¶
func (svr *RbacServiceServer) DeleteRole(ctx context.Context, in *pb.DeleteRoleRequest) (*pb.DeleteRoleReply, error)
func (*RbacServiceServer) DeleteUser ¶
func (svr *RbacServiceServer) DeleteUser(ctx context.Context, in *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
func (*RbacServiceServer) GetDockerfiles ¶
func (svr *RbacServiceServer) GetDockerfiles(ctx context.Context, in *pb.GetDockerfilesRequest) (*pb.GetDockerfilesReply, error)
func (*RbacServiceServer) GetPolicies ¶
func (svr *RbacServiceServer) GetPolicies(ctx context.Context, in *pb.GetPoliciesRequest) (*pb.GetPoliciesReply, error)
func (*RbacServiceServer) GetPolicy ¶
func (svr *RbacServiceServer) GetPolicy(ctx context.Context, in *pb.GetPolicyRequest) (*pb.GetPolicyReply, error)
func (*RbacServiceServer) GetPolicyJson ¶
func (svr *RbacServiceServer) GetPolicyJson(ctx context.Context, in *pb.GetPolicyJsonRequest) (*pb.GetPolicyJsonReply, error)
func (*RbacServiceServer) GetProjects ¶
func (svr *RbacServiceServer) GetProjects(ctx context.Context, in *pb.GetProjectsRequest) (*pb.GetProjectsReply, error)
func (*RbacServiceServer) GetRole ¶
func (svr *RbacServiceServer) GetRole(ctx context.Context, in *pb.GetRoleRequest) (*pb.GetRoleReply, error)
func (*RbacServiceServer) GetRoles ¶
func (svr *RbacServiceServer) GetRoles(ctx context.Context, in *pb.GetRolesRequest) (*pb.GetRolesReply, error)
func (*RbacServiceServer) GetTraceId ¶
func (svr *RbacServiceServer) GetTraceId(ctx context.Context, in *pb.GetTraceIdRequest) (*pb.GetTraceIdReply, error)
func (*RbacServiceServer) GetTraceIdByDockerfileId ¶
func (svr *RbacServiceServer) GetTraceIdByDockerfileId(ctx context.Context, in *pb.GetTraceIdByDockerfileIdRequest) (*pb.GetTraceIdByDockerfileIdReply, error)
func (*RbacServiceServer) GetUsers ¶
func (svr *RbacServiceServer) GetUsers(ctx context.Context, in *pb.GetUsersRequest) (*pb.GetUsersReply, error)
func (*RbacServiceServer) GetUsersInProject ¶
func (svr *RbacServiceServer) GetUsersInProject(ctx context.Context, in *pb.GetUsersInProjectRequest) (*pb.GetUsersInProjectReply, error)
func (*RbacServiceServer) IsUserExist ¶
func (svr *RbacServiceServer) IsUserExist(ctx context.Context, in *pb.IsUserExistRequest) (*pb.IsUserExistReply, error)
func (*RbacServiceServer) PostDockerfile ¶
func (svr *RbacServiceServer) PostDockerfile(ctx context.Context, in *pb.PostDockerfileRequest) (*emptypb.Empty, error)
func (*RbacServiceServer) PostPolicy ¶
func (svr *RbacServiceServer) PostPolicy(ctx context.Context, in *pb.PostPolicyRequest) (*emptypb.Empty, error)
func (*RbacServiceServer) PostProject ¶
func (svr *RbacServiceServer) PostProject(ctx context.Context, in *pb.PostProjectRequest) (*pb.PostProjectReply, error)
func (*RbacServiceServer) PostRole ¶
func (svr *RbacServiceServer) PostRole(ctx context.Context, in *pb.PostRoleRequest) (*pb.PostRoleReply, error)
func (*RbacServiceServer) PostUser ¶
func (svr *RbacServiceServer) PostUser(ctx context.Context, in *pb.PostUserRequest) (*emptypb.Empty, error)
func (*RbacServiceServer) PutUser ¶
func (svr *RbacServiceServer) PutUser(ctx context.Context, in *pb.PutUserRequest) (*pb.PutUserReply, error)
func (*RbacServiceServer) UpdatePolicy ¶
func (svr *RbacServiceServer) UpdatePolicy(ctx context.Context, in *pb.UpdatePolicyRequest) (*pb.UpdatePolicyReply, error)
func (*RbacServiceServer) UpdateRole ¶
func (svr *RbacServiceServer) UpdateRole(ctx context.Context, in *pb.UpdateRoleRequest) (*pb.UpdateRoleReply, error)
func (*RbacServiceServer) UpdateUserRole ¶
func (svr *RbacServiceServer) UpdateUserRole(ctx context.Context, in *pb.UpdateUserRoleRequest) (*pb.UpdateUserRoleReply, error)
Click to show internal directories.
Click to hide internal directories.