# Functions
CallCustomHandler calls the custom handler for an error if it has one.
ContainsFinalizer checks if the given finalizer `f` is in the given list of finalizers.
No description provided by the author
GetComplianceOperatorName gets the name that the operator is currently running with.
GetComplianceOperatorNamespace gets the namespace that the operator is currently running on.
HasCustomHandler returns whether the error has a custom handler or not.
IsRetriable returns whether the error is retriable or not using the NonRetriableCtrlError interface.
NewNonRetriableCtrlError creates an error with the RetriableCtrlError interface.
NewRetriableCtrlErrorWithCustomHandler creates an error with the RetriableCtrlError interface This error is retriable has a custom handler.
No description provided by the author
RemoveFinalizer removes the given finalizer `f` from the given list of finalizers.
ReturnWithRetriableError will check if the error is retriable we return it.
WrapNonRetriableCtrlError wraps an error with the RetriableCtrlError interface.
# Constants
No description provided by the author
taken from k8sutil.
No description provided by the author
OpenSCAPExitCodeCompliant defines a success coming from OpenSCAP.
OpenSCAPExitCodeNonCompliant defines a non-compliance error coming from OpenSCAP.
PodUnschedulableExitCode is a custom error that indicates that we couldn't schedule the pod.
# Structs
NonRetriableCtrlError wraps errors with the addition of having the information for the error being non-retriable.
No description provided by the author
# Type aliases
ErrorHandler defines a function that handles errors It can be used in a non retriable or a retriable error.
No description provided by the author