Documentation ¶
Index ¶
- func NewRegistration() serviceregistry.Registration
- type AuthorizationService
- func (as *AuthorizationService) GetDecisions(ctx context.Context, req *authorization.GetDecisionsRequest) (*authorization.GetDecisionsResponse, error)
- func (as *AuthorizationService) GetDecisionsByToken(ctx context.Context, req *authorization.GetDecisionsByTokenRequest) (*authorization.GetDecisionsByTokenResponse, error)
- func (as *AuthorizationService) GetEntitlements(ctx context.Context, req *authorization.GetEntitlementsRequest) (*authorization.GetEntitlementsResponse, error)
- func (as AuthorizationService) IsReady(ctx context.Context) error
- type Config
- type CustomRego
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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) GetDecisionsByToken ¶ added in v0.4.3
func (as *AuthorizationService) GetDecisionsByToken(ctx context.Context, req *authorization.GetDecisionsByTokenRequest) (*authorization.GetDecisionsByTokenResponse, error)
func (*AuthorizationService) GetEntitlements ¶
func (as *AuthorizationService) GetEntitlements(ctx context.Context, req *authorization.GetEntitlementsRequest) (*authorization.GetEntitlementsResponse, error)
type Config ¶ added in v0.4.7
type Config struct { // Entity Resolution Service URL ERSURL string `mapstructure:"ersurl" validate:"required,http_url"` // OAuth Client ID ClientID string `mapstructure:"clientid" validate:"required"` // OAuth Client secret ClientSecret string `mapstructure:"clientsecret" validate:"required"` // OAuth token endpoint TokenEndpoint string `mapstructure:"tokenendpoint" validate:"required,http_url"` // 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.