Documentation ¶
Index ¶
- Variables
- func NewRegistration() serviceregistry.Registration
- type AuthorizationService
- func (as AuthorizationService) GetDecisions(ctx context.Context, req *authorization.GetDecisionsRequest) (*authorization.GetDecisionsResponse, error)
- func (as AuthorizationService) GetEntitlements(ctx context.Context, req *authorization.GetEntitlementsRequest) (*authorization.GetEntitlementsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RetrieveAttributeDefinitions = func(ctx context.Context, ra *authorization.ResourceAttribute, as AuthorizationService) (*attr.GetAttributeValuesByFqnsResponse, error) { slog.Debug("getting resource attributes", slog.String("FQNs", strings.Join(ra.AttributeFqns, ", "))) return as.sdk.Attributes.GetAttributeValuesByFqns(ctx, &attr.GetAttributeValuesByFqnsRequest{ Fqns: ra.AttributeFqns, WithValue: &policy.AttributeValueSelector{ WithSubjectMaps: true, }, }) }
View Source
var RetrieveEntitlements = func(ctx context.Context, req *authorization.GetEntitlementsRequest, as AuthorizationService) (*authorization.GetEntitlementsResponse, error) {
return as.GetEntitlements(ctx, req)
}
Functions ¶
func NewRegistration ¶
func NewRegistration() serviceregistry.Registration
Types ¶
type AuthorizationService ¶
type AuthorizationService struct { authorization.UnimplementedAuthorizationServiceServer // contains filtered or unexported fields }
func (AuthorizationService) GetDecisions ¶
func (as AuthorizationService) GetDecisions(ctx context.Context, req *authorization.GetDecisionsRequest) (*authorization.GetDecisionsResponse, error)
func (AuthorizationService) GetEntitlements ¶
func (as AuthorizationService) GetEntitlements(ctx context.Context, req *authorization.GetEntitlementsRequest) (*authorization.GetEntitlementsResponse, error)
Click to show internal directories.
Click to hide internal directories.