Documentation ¶
Index ¶
- func ExtractRequestFields(fullMethod string, req interface{}) map[string]interface{}
- func SetHTTPStatusCode(ctx context.Context, code int)
- type CerbosAdminService
- func (cas *CerbosAdminService) AddOrUpdatePolicy(ctx context.Context, req *requestv1.AddOrUpdatePolicyRequest) (*responsev1.AddOrUpdatePolicyResponse, error)
- func (cas *CerbosAdminService) ListAuditLogEntries(req *requestv1.ListAuditLogEntriesRequest, ...) error
- func (cas *CerbosAdminService) ListPolicies(ctx context.Context, req *requestv1.ListPoliciesRequest) (*responsev1.ListPoliciesResponse, error)
- type CerbosPlaygroundService
- func (cs *CerbosPlaygroundService) PlaygroundEvaluate(ctx context.Context, req *requestv1.PlaygroundEvaluateRequest) (*responsev1.PlaygroundEvaluateResponse, error)
- func (cs *CerbosPlaygroundService) PlaygroundProxy(ctx context.Context, req *requestv1.PlaygroundProxyRequest) (*responsev1.PlaygroundProxyResponse, error)
- func (cs *CerbosPlaygroundService) PlaygroundValidate(ctx context.Context, req *requestv1.PlaygroundValidateRequest) (*responsev1.PlaygroundValidateResponse, error)
- type CerbosService
- func (cs *CerbosService) CheckResourceBatch(ctx context.Context, req *requestv1.CheckResourceBatchRequest) (*responsev1.CheckResourceBatchResponse, error)
- func (cs *CerbosService) CheckResourceSet(ctx context.Context, req *requestv1.CheckResourceSetRequest) (*responsev1.CheckResourceSetResponse, error)
- func (CerbosService) ServerInfo(ctx context.Context, req *requestv1.ServerInfoRequest) (*responsev1.ServerInfoResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractRequestFields ¶
func SetHTTPStatusCode ¶
Types ¶
type CerbosAdminService ¶
type CerbosAdminService struct { *svcv1.UnimplementedCerbosAdminServiceServer // contains filtered or unexported fields }
CerbosAdminService implements the Cerbos administration service.
func NewCerbosAdminService ¶
func (*CerbosAdminService) AddOrUpdatePolicy ¶
func (cas *CerbosAdminService) AddOrUpdatePolicy(ctx context.Context, req *requestv1.AddOrUpdatePolicyRequest) (*responsev1.AddOrUpdatePolicyResponse, error)
func (*CerbosAdminService) ListAuditLogEntries ¶
func (cas *CerbosAdminService) ListAuditLogEntries(req *requestv1.ListAuditLogEntriesRequest, stream svcv1.CerbosAdminService_ListAuditLogEntriesServer) error
func (*CerbosAdminService) ListPolicies ¶ added in v0.7.0
func (cas *CerbosAdminService) ListPolicies(ctx context.Context, req *requestv1.ListPoliciesRequest) (*responsev1.ListPoliciesResponse, error)
type CerbosPlaygroundService ¶
type CerbosPlaygroundService struct { *svcv1.UnimplementedCerbosPlaygroundServiceServer // contains filtered or unexported fields }
CerbosPlaygroundService implements the playground API.
func NewCerbosPlaygroundService ¶
func NewCerbosPlaygroundService() *CerbosPlaygroundService
func (*CerbosPlaygroundService) PlaygroundEvaluate ¶
func (cs *CerbosPlaygroundService) PlaygroundEvaluate(ctx context.Context, req *requestv1.PlaygroundEvaluateRequest) (*responsev1.PlaygroundEvaluateResponse, error)
func (*CerbosPlaygroundService) PlaygroundProxy ¶ added in v0.5.0
func (cs *CerbosPlaygroundService) PlaygroundProxy(ctx context.Context, req *requestv1.PlaygroundProxyRequest) (*responsev1.PlaygroundProxyResponse, error)
func (*CerbosPlaygroundService) PlaygroundValidate ¶
func (cs *CerbosPlaygroundService) PlaygroundValidate(ctx context.Context, req *requestv1.PlaygroundValidateRequest) (*responsev1.PlaygroundValidateResponse, error)
type CerbosService ¶
type CerbosService struct { *svcv1.UnimplementedCerbosServiceServer // contains filtered or unexported fields }
CerbosService implements the policy checking service.
func NewCerbosService ¶
func NewCerbosService(eng *engine.Engine, auxData *auxdata.AuxData) *CerbosService
func (*CerbosService) CheckResourceBatch ¶
func (cs *CerbosService) CheckResourceBatch(ctx context.Context, req *requestv1.CheckResourceBatchRequest) (*responsev1.CheckResourceBatchResponse, error)
func (*CerbosService) CheckResourceSet ¶
func (cs *CerbosService) CheckResourceSet(ctx context.Context, req *requestv1.CheckResourceSetRequest) (*responsev1.CheckResourceSetResponse, error)
func (CerbosService) ServerInfo ¶ added in v0.5.0
func (CerbosService) ServerInfo(ctx context.Context, req *requestv1.ServerInfoRequest) (*responsev1.ServerInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.