grpc

package
v0.0.0-...-9d91e49 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RbacManagerServer

type RbacManagerServer struct {
	Grpc     *grpc.Server
	Listener net.Listener
}

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 (*RbacServiceServer) DeleteProject

func (*RbacServiceServer) DeleteRole

func (*RbacServiceServer) DeleteUser

func (*RbacServiceServer) GetDockerfiles

func (*RbacServiceServer) GetPolicies

func (*RbacServiceServer) GetPolicy

func (*RbacServiceServer) GetPolicyJson

func (*RbacServiceServer) GetProjects

func (*RbacServiceServer) GetRole

func (*RbacServiceServer) GetRoles

func (*RbacServiceServer) GetTraceId

func (*RbacServiceServer) GetTraceIdByDockerfileId

func (*RbacServiceServer) GetUsers

func (*RbacServiceServer) GetUsersInProject

func (*RbacServiceServer) IsUserExist

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 (*RbacServiceServer) PostRole

func (*RbacServiceServer) PostUser

func (svr *RbacServiceServer) PostUser(ctx context.Context, in *pb.PostUserRequest) (*emptypb.Empty, error)

func (*RbacServiceServer) PutUser

func (*RbacServiceServer) UpdatePolicy

func (*RbacServiceServer) UpdateRole

func (*RbacServiceServer) UpdateUserRole

Jump to

Keyboard shortcuts

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