RegoAuthorizer will use a prepared rego query for performing authorize()
| 281 | |
| 282 | // RegoAuthorizer will use a prepared rego query for performing authorize() |
| 283 | type RegoAuthorizer struct { |
| 284 | query rego.PreparedEvalQuery |
| 285 | partialQuery rego.PreparedPartialQuery |
| 286 | |
| 287 | authorizeHist *prometheus.HistogramVec |
| 288 | prepareHist prometheus.Histogram |
| 289 | |
| 290 | // strict checking also verifies the inputs to the authorizer. Making sure |
| 291 | // the action make sense for the input object. |
| 292 | strict bool |
| 293 | } |
| 294 | |
| 295 | var _ Authorizer = (*RegoAuthorizer)(nil) |
| 296 |
nothing calls this directly
no outgoing calls
no test coverage detected