Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrProbeAPIServer is the error code for errors in the API server probe. ErrProbeAPIServer = "ERR_PROBE_API_SERVER" // ErrSetupProbeClient is the error code for errors in setting up the probe client. ErrSetupProbeClient = "ERR_SETUP_PROBE_CLIENT" // ErrProbeNodeLease is the error code for errors in the node lease probe. ErrProbeNodeLease = "ERR_PROBE_NODE_LEASE" // ErrScaleUp is the error code for errors in scaling up the dependent resources ErrScaleUp = "ERR_SCALE_UP" // ErrScaleDown is the error code for errors in scaling down the dependent resources ErrScaleDown = "ERR_SCALE_DOWN" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProbeError ¶
type ProbeError struct { // Code is the error code that is returned by the probe. Code ErrorCode // Cause is the error that happened during the probe. Cause error // Message is used for mentioning additional details describing the error. Message string }
ProbeError is the error type for probe errors. It contains the error code, the cause of the error, and the error message. It is used by prober to record its last error and is currently only used for unit tests.
func (*ProbeError) Error ¶
func (e *ProbeError) Error() string
Error is the error interface implementation for ProbeError.
Click to show internal directories.
Click to hide internal directories.