package status

import "github.com/open-policy-agent/opa/v1/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) Equal

func (s *Status) Equal(other *Status) bool

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
v1.4.2 (latest)
Published
May 2, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
3 weeks ago

Tools for package owners.