Documentation
¶
Overview ¶
Package opaHandler is used by the hexaAuthZen server package to enable running rego based decisions in an all-in-one demonstration deployment. When an AuthZen decision request is received, the request is parsed and transformed into an OPA decision request which this handler processes.
Index ¶
- type RegoHandler
- func (h *RegoHandler) CheckBundleDir() error
- func (h *RegoHandler) Evaluate(input infoModel.AzInfo) (rego.ResultSet, error)
- func (h *RegoHandler) HealthCheck() bool
- func (h *RegoHandler) ProcessResults(results rego.ResultSet) *decisionsupportproviders.HexaOpaResult
- func (h *RegoHandler) ReloadRego() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegoHandler ¶
type RegoHandler struct {
// contains filtered or unexported fields
}
func NewRegoHandler ¶
func NewRegoHandler(bundleDir string) *RegoHandler
func (*RegoHandler) CheckBundleDir ¶
func (h *RegoHandler) CheckBundleDir() error
func (*RegoHandler) HealthCheck ¶
func (h *RegoHandler) HealthCheck() bool
func (*RegoHandler) ProcessResults ¶
func (h *RegoHandler) ProcessResults(results rego.ResultSet) *decisionsupportproviders.HexaOpaResult
func (*RegoHandler) ReloadRego ¶
func (h *RegoHandler) ReloadRego() error
Click to show internal directories.
Click to hide internal directories.