Documentation ¶
Index ¶
- Constants
- func NewRegistration() *serviceregistry.Service[authorizationconnect.AuthorizationServiceHandler]
- type AuthorizationService
- func (as *AuthorizationService) GetDecisions(ctx context.Context, req *connect.Request[authorization.GetDecisionsRequest]) (*connect.Response[authorization.GetDecisionsResponse], error)
- func (as *AuthorizationService) GetDecisionsByToken(ctx context.Context, ...) (*connect.Response[authorization.GetDecisionsByTokenResponse], error)
- func (as *AuthorizationService) GetEntitlements(ctx context.Context, ...) (*connect.Response[authorization.GetEntitlementsResponse], error)
- func (as AuthorizationService) IsReady(ctx context.Context) error
- type Config
- type CustomRego
Constants ¶
View Source
const EntityIDPrefix string = "entity_idx_"
Variables ¶
This section is empty.
Functions ¶
func NewRegistration ¶
func NewRegistration() *serviceregistry.Service[authorizationconnect.AuthorizationServiceHandler]
Types ¶
type AuthorizationService ¶
type AuthorizationService struct {
// contains filtered or unexported fields
}
func (*AuthorizationService) GetDecisions ¶
func (as *AuthorizationService) GetDecisions(ctx context.Context, req *connect.Request[authorization.GetDecisionsRequest]) (*connect.Response[authorization.GetDecisionsResponse], error)
func (*AuthorizationService) GetDecisionsByToken ¶ added in v0.4.3
func (as *AuthorizationService) GetDecisionsByToken(ctx context.Context, req *connect.Request[authorization.GetDecisionsByTokenRequest]) (*connect.Response[authorization.GetDecisionsByTokenResponse], error)
func (*AuthorizationService) GetEntitlements ¶
func (as *AuthorizationService) GetEntitlements(ctx context.Context, req *connect.Request[authorization.GetEntitlementsRequest]) (*connect.Response[authorization.GetEntitlementsResponse], error)
type Config ¶ added in v0.4.7
type Config struct { // Custom Rego Policy To Load Rego CustomRego `mapstructure:"rego"` }
type CustomRego ¶ added in v0.4.10
Click to show internal directories.
Click to hide internal directories.