package
0.0.82
Repository: https://github.com/mindersec/minder.git
Documentation: pkg.go.dev

# Functions

AlertErrorAsString returns the alert error as a string.
AlertStatusAsError returns the error for a given alert status.
ErrorAsAlertStatus returns the alert status for a given error.
ErrorAsEvalDetails returns the evaluation details for a given error.
ErrorAsEvalStatus returns the evaluation status for a given error.
ErrorAsRemediationStatus returns the remediation status for a given error.
EvalErrorAsString returns the evaluation error as a string.
HTTPErrorCodeToErr converts an HTTP error code to an error.
IsActionFatalError returns true if the error is a fatal error that should stop be reported to the user.
IsActionInformativeError returns true if the error is an informative error that should not be reported to the user.
LimitedWriter returns a writer that allows up to `n` bytes being written.
NewDetailedErrEvaluationFailed creates a new evaluation error with a given error message and a templated detail message.
NewErrActionFailed creates a new action error.
NewErrEvaluationFailed creates a new evaluation error with a formatted message.
NewErrEvaluationSkipped creates a new evaluation error.
NewErrEvaluationSkipSilently creates a new evaluation error.
RemediationErrorAsString returns the remediation error as a string.
RemediationStatusAsError returns the remediation status for a given error.

# Variables

ErrActionFailed is an error code that indicates that the action was attempted but failed.
ErrActionNotAvailable is an error code that indicates that the action was not available for this rule_type.
ErrActionPending is an error code that indicates that the action was performed but is pending, i.e., opened a PR.
ErrActionSkipped is an error code that indicates that the action was not performed at all because the evaluation passed and the action was not needed.
ErrActionTurnedOff is an error code that indicates that the action is turned off for this rule_type.
ErrClientError is returned when a request is a client error.
ErrEvaluationFailed is an error that occurs during evaluation of a rule.
ErrEvaluationSkipped specifies that the rule was evaluated but skipped.
ErrEvaluationSkipSilently specifies that the rule was evaluated but skipped silently.
ErrForbidden is returned when a request is forbidden.
ErrInternal is an error that occurs when there is an internal error in the minder engine.
ErrNotFound is returned when a resource is not found.
ErrOther is returned when a request is another error.
ErrServerError is returned when a request is a server error.
ErrUnauthorized is returned when a request is unauthorized.
ErrValidateOrSpammed is returned when a request is a validation or spammed error.

# Structs

ActionsError is the error wrapper for actions.
EvaluationError is a custom error type for evaluation errors.