Documentation
¶
Overview ¶
Package errors provides error types and constants for the transport package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedTransport = errors.New("unsupported transport type") ErrTransportNotStarted = errors.New("transport not started") ErrTransportClosed = errors.New("transport closed") ErrInvalidMessage = errors.New("invalid message") ErrRuntimeNotSet = errors.New("container runtime not set") ErrContainerIDNotSet = errors.New("container ID not set") ErrContainerNameNotSet = errors.New("container name not set") )
Common transport errors
Functions ¶
This section is empty.
Types ¶
type TransportError ¶
type TransportError struct { // Err is the underlying error Err error // ContainerID is the ID of the container ContainerID string // Message is an optional error message Message string }
TransportError represents an error related to transport operations
func NewTransportError ¶
func NewTransportError(err error, containerID, message string) *TransportError
NewTransportError creates a new transport error
func (*TransportError) Error ¶
func (e *TransportError) Error() string
Error returns the error message
func (*TransportError) Unwrap ¶
func (e *TransportError) Unwrap() error
Unwrap returns the underlying error
Click to show internal directories.
Click to hide internal directories.