package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

AptError returns a transient error for apt-related issues.
AsError extracts the Error from err's error tree or (nil, false) if none exists.
ClassifyCmdError classifies an error received while executing a non-cockroach command remotely over an ssh connection to the right Error type.
GetExitCode returns an exit code, true if the error is an instance of an ExitError, or -1, false otherwise.
IsTransient allows callers to check if a given error is a roachprod transient error.
NewSSHError returns a transient error for SSH-related issues.
TransientFailure is used to label errors that are known to be transient.

# Constants

# Structs

Cmd wraps errors that result from a command run against the cluster.
Unclassified wraps roachprod and unclassified errors.

# Interfaces

Error is an interface for error types used by the main.wrap() function to output correctly classified log messages and exit codes.