Documentation
¶
Overview ¶
Package errors provides custom error types for the disa application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDockerNotRunning = New("docker daemon is not running") ErrImageNotFound = New("image not found") ErrInvalidImageRef = New("invalid image reference") ErrAnalysisFailed = New("analysis failed") ErrUnsupportedFormat = New("unsupported output format") )
Common errors.
Functions ¶
Types ¶
type DisaError ¶
type DisaError struct {
Op string // operation being performed
Err error // underlying error
Kind ErrorKind
}
DisaError is the base error type for the application.
type ErrorKind ¶
type ErrorKind int
ErrorKind represents the category of error.
const ( // KindUnknown represents an unknown error type. KindUnknown ErrorKind = iota // KindDocker represents a Docker-related error. KindDocker // KindParse represents a parsing error. KindParse // KindValidation represents a validation error. KindValidation // KindNotFound represents a "not found" error. KindNotFound KindUnauthorized )
Click to show internal directories.
Click to hide internal directories.