svc

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRequestFields

func ExtractRequestFields(fullMethod string, req any) map[string]any

func SetHTTPStatusCode

func SetHTTPStatusCode(ctx context.Context, code int)

Types

type CerbosAdminService

type CerbosAdminService struct {
	*svcv1.UnimplementedCerbosAdminServiceServer
	// contains filtered or unexported fields
}

CerbosAdminService implements the Cerbos administration service.

func NewCerbosAdminService

func NewCerbosAdminService(store storage.Store, auditLog audit.Log, adminUser string, adminPasswdHash []byte) *CerbosAdminService

func (*CerbosAdminService) AddOrUpdatePolicy

func (*CerbosAdminService) AddOrUpdateSchema added in v0.11.0

func (*CerbosAdminService) DeleteSchema added in v0.11.0

func (*CerbosAdminService) DisablePolicy added in v0.25.0

func (*CerbosAdminService) EnablePolicy added in v0.26.0

func (*CerbosAdminService) GetPolicy added in v0.12.0

func (*CerbosAdminService) GetSchema added in v0.11.0

func (*CerbosAdminService) ListPolicies added in v0.7.0

func (*CerbosAdminService) ListSchemas added in v0.11.0

func (*CerbosAdminService) ReloadStore added in v0.15.0

type CerbosPlaygroundService

type CerbosPlaygroundService struct {
	*svcv1.UnimplementedCerbosPlaygroundServiceServer
	// contains filtered or unexported fields
}

CerbosPlaygroundService implements the playground API.

func NewCerbosPlaygroundService

func NewCerbosPlaygroundService(reqLimits RequestLimits) *CerbosPlaygroundService

func (*CerbosPlaygroundService) PlaygroundEvaluate

func (*CerbosPlaygroundService) PlaygroundProxy added in v0.5.0

func (*CerbosPlaygroundService) PlaygroundTest added in v0.15.0

func (*CerbosPlaygroundService) PlaygroundValidate

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, reqLimits RequestLimits) *CerbosService

func (*CerbosService) CheckResourceBatch

CheckResourceBatch checks a batch of heterogenous resources. Deprecated: Since 0.16.0. Use CheckResources instead.

func (*CerbosService) CheckResourceSet

CheckResourceSet checks a batch of homogenous resources. Deprecated: Since 0.16.0. Use CheckResources instead.

func (*CerbosService) CheckResources added in v0.16.0

CheckResources checks a batch of heterogenous resources.

func (*CerbosService) PlanResources added in v0.16.0

func (CerbosService) ServerInfo added in v0.5.0

type RequestLimits added in v0.17.0

type RequestLimits struct {
	MaxActionsPerResource  uint
	MaxResourcesPerRequest uint
}

Jump to

Keyboard shortcuts

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