Documentation
¶
Index ¶
- type GRPCService
- func (impl *GRPCService) Diagnose(ctx context.Context, in *pb.ContextRequest) (*pb.EvaluationDebugResponse, error)
- func (impl *GRPCService) Discover(ctx context.Context, in *pb.ContextRequest) (*pb.IsAllowedResponse, error)
- func (impl *GRPCService) GetAllGrantedRoles(ctx context.Context, in *pb.ContextRequest) (*pb.AllRoleResponse, error)
- func (impl *GRPCService) GetAllPermissions(ctx context.Context, in *pb.ContextRequest) (*pb.AllPermissionResponse, error)
- func (impl *GRPCService) IsAllowed(ctx context.Context, in *pb.ContextRequest) (*pb.IsAllowedResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCService ¶
type GRPCService struct {
// contains filtered or unexported fields
}
GRPCService is the ADS GRPC implementation
func NewGRPCService ¶
func NewGRPCService(evaluator eval.InternalEvaluator) (*GRPCService, error)
NewGRPCService constructs a new ADS GRPC service instance
func (*GRPCService) Diagnose ¶
func (impl *GRPCService) Diagnose(ctx context.Context, in *pb.ContextRequest) (*pb.EvaluationDebugResponse, error)
func (*GRPCService) Discover ¶
func (impl *GRPCService) Discover(ctx context.Context, in *pb.ContextRequest) (*pb.IsAllowedResponse, error)
func (*GRPCService) GetAllGrantedRoles ¶
func (impl *GRPCService) GetAllGrantedRoles(ctx context.Context, in *pb.ContextRequest) (*pb.AllRoleResponse, error)
func (*GRPCService) GetAllPermissions ¶
func (impl *GRPCService) GetAllPermissions(ctx context.Context, in *pb.ContextRequest) (*pb.AllPermissionResponse, error)
func (*GRPCService) IsAllowed ¶
func (impl *GRPCService) IsAllowed(ctx context.Context, in *pb.ContextRequest) (*pb.IsAllowedResponse, error)
Click to show internal directories.
Click to hide internal directories.