Documentation ¶
Overview ¶
Package decisionHandler maps between AuthZen requests and the HexaOPA IDQL based engine
Index ¶
- type DecisionHandler
- func (d *DecisionHandler) HealthCheck() bool
- func (d *DecisionHandler) ProcessDecision(authRequest infoModel2.AuthRequest) (*infoModel2.SimpleResponse, error, int)
- func (d *DecisionHandler) ProcessQueryDecision(_ infoModel2.QueryRequest, _ *http.Request) (*infoModel2.EvaluationsResponse, error, int)
- func (d *DecisionHandler) ProcessUploadOpa() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecisionHandler ¶
type DecisionHandler struct {
// contains filtered or unexported fields
}
func NewDecisionHandler ¶
func NewDecisionHandler() *DecisionHandler
func (*DecisionHandler) HealthCheck ¶
func (d *DecisionHandler) HealthCheck() bool
func (*DecisionHandler) ProcessDecision ¶
func (d *DecisionHandler) ProcessDecision(authRequest infoModel2.AuthRequest) (*infoModel2.SimpleResponse, error, int)
ProcessDecision takes an AuthZen AuthRequest, generates a Hexa OPA input object that combines resource, subject, and request information and calls the HexaOPA decision engine and parses the results.
func (*DecisionHandler) ProcessQueryDecision ¶
func (d *DecisionHandler) ProcessQueryDecision(_ infoModel2.QueryRequest, _ *http.Request) (*infoModel2.EvaluationsResponse, error, int)
ProcessQueryDecision takes an AuthZen Query request processes each query into an HexaOPA decision and returns a response
func (*DecisionHandler) ProcessUploadOpa ¶
func (d *DecisionHandler) ProcessUploadOpa() error
Click to show internal directories.
Click to hide internal directories.