package status
import "github.com/open-policy-agent/opa/plugins/logs/status"
Index ¶
Types ¶
type HTTPError ¶
type HTTPError struct { StatusCode int }
func (HTTPError) Error ¶
type Status ¶
type Status struct { Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` HTTPCode json.Number `json:"http_code,omitempty"` Metrics metrics.Metrics `json:"metrics,omitempty"` }
Status represents the status of processing a decision log.
func (*Status) SetError ¶
SetError updates the status object to reflect a failure to upload or process a log. If err is nil, the error status is cleared.
Source Files ¶
- Version
- v0.58.0
- Published
- Oct 26, 2023
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 2 minutes ago –
Tools for package owners.