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
InterceptorError wraps an error with ErrInterceptor.
Types ¶
Click to show internal directories.
Click to hide internal directories.