auditerrors

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package auditerrors defines the sentinel errors for the project.

Index

Constants

View Source
const (
	// ErrInvalidRequest is the (base) error to return when a log processor
	// considers a log request is invalid.
	ErrInvalidRequest = Error("invalid audit log request")

	// ErrPreconditionFailed is the (base) error to return when a log processor
	// considers a log request should not continue to be processed by any
	// remaining log processors. The audit client will not return this type of
	// errors.
	ErrPreconditionFailed = Error("precondition failed")

	// ErrLogRequestMissingPayload is the error returned when the log request does
	// not have a payload set.
	ErrLogRequestMissingPayload = Error("missing payload in log request")

	// ErrJustificationMissing is the error returned with a justification token
	// was
	// not provided with the request.
	ErrJustificationMissing = Error("missing justification token")

	// ErrJustificationInvalid is the error returned when a justification token
	// was present, but failed validation.
	ErrJustificationInvalid = Error("invalid justification token")

	// ErrInterceptor is used to assert whether an error is an interceptor error.
	ErrInterceptor = Error("audit interceptor")
)

Variables

This section is empty.

Functions

func InterceptorError added in v0.0.8

func InterceptorError(err error) error

InterceptorError wraps an error with ErrInterceptor.

Types

type Error

type Error string

Error is a concrete error implementation.

func (Error) Error

func (e Error) Error() string

Error satisfies the error interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL