[][src]Enum bandsocks::ImageError

pub enum ImageError {
    InvalidReferenceFormat(String),
    Storage(Error),
    JSON(Error),
    TaskJoin(JoinError),
    ByteChannelError(SendError<Bytes>),
    NetworkRequest(Error),
    NulStringError(NulError),
    RegistryNotAllowed(Registry),
    TARFileError,
    ImageVFSError(VFSError),
    StorageMissingAfterInsert,
    ContentDigestIOError,
    DownloadInOfflineMode,
    NoDefaultCacheDir,
    UnsupportedManifestType,
    UnsupportedRuntimeConfigType(String),
    UnsupportedLayerType(String),
    InvalidContentType(String),
    UnexpectedContentSize,
    UnexpectedDecompressedLayerContent,
    UnsupportedRootFilesystemType(String),
    InsecureManifest,
    UnsupportedAuthentication(String),
    ContentDigestMismatch {
        expected: ContentDigest,
        found: ContentDigest,
    },
}

Errors during container image preparation

Variants

InvalidReferenceFormat(String)

invalid image reference format

Storage(Error)

storage io error

JSON(Error)

json error

TaskJoin(JoinError)

asynchronous task failed during image preparation

ByteChannelError(SendError<Bytes>)

asynchronous image hashing task failed during image preparation

NetworkRequest(Error)

network request error

NulStringError(NulError)

string in image configuration contained internal nul byte

RegistryNotAllowed(Registry)

registry server is not allowed by the current configuration

TARFileError

tar file format error

ImageVFSError(VFSError)

virtual filesystem error while preparing image

StorageMissingAfterInsert

data just written to the cache is missing

ContentDigestIOError

i/o errors occurred, the content digest is not valid

DownloadInOfflineMode

we are in offline mode, but a download was requested

NoDefaultCacheDir

can't determine where to cache image files

UnsupportedManifestType

only v2 image manifests are supported

UnsupportedRuntimeConfigType(String)

unsupported type for runtime config

UnsupportedLayerType(String)

unsupported type for image layer

InvalidContentType(String)

invalid content type string

UnexpectedContentSize

unexpected content size

UnexpectedDecompressedLayerContent

unable to locate decompressed layers by content hash

UnsupportedRootFilesystemType(String)

unsupported type for rootfs in image config

InsecureManifest

insecure configuration; refusing to run a manifest downloaded over HTTP with no content digest

UnsupportedAuthentication(String)

registry server requested an unsupported type of authentication

ContentDigestMismatch

calculated digest of downloaded content is not what we asked for

Fields of ContentDigestMismatch

expected: ContentDigestfound: ContentDigest

Trait Implementations

impl Debug for ImageError[src]

impl Display for ImageError[src]

impl Error for ImageError[src]

impl From<Error> for ImageError[src]

impl From<Error> for ImageError[src]

impl From<Error> for ImageError[src]

impl From<ImageError> for RuntimeError[src]

impl From<JoinError> for ImageError[src]

impl From<NulError> for ImageError[src]

impl From<SendError<Bytes>> for ImageError[src]

impl From<VFSError> for ImageError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,