package status

import "github.com/open-policy-agent/opa/plugins/logs/status"

Index

Types

type HTTPError

type HTTPError struct {
	StatusCode int
}

func (HTTPError) Error

func (e HTTPError) Error() string

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

func (s *Status) SetError(err error)

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

status.go

Version
v0.56.0
Published
Aug 31, 2023
Platform
js/wasm
Imports
6 packages
Last checked
1 second ago

Tools for package owners.