pub enum Transport {
Registry,
OciDir,
OciArchive,
DockerArchive,
ContainerStorage,
Dir,
DockerDaemon,
}Expand description
A backend/transport for OCI/Docker images.
Variants§
Registry
A remote Docker/OCI registry (registry: or docker://)
OciDir
A local OCI directory (oci:)
OciArchive
A local OCI archive tarball (oci-archive:)
DockerArchive
A local Docker archive tarball (docker-archive:)
ContainerStorage
Local container storage (containers-storage:)
Dir
Local directory (dir:)
DockerDaemon
Local Docker daemon (docker-daemon:)
Trait Implementations§
Source§impl TryFrom<&str> for Transport
impl TryFrom<&str> for Transport
Source§fn try_from(imgref: &str) -> Result<Self, TransportConversionError>
fn try_from(imgref: &str) -> Result<Self, TransportConversionError>
Parse the transport type from a container image reference string, eg docker://quay.io/myimage, containers-storage:localhost/myimage
Supports various transport types like “registry:”, “oci:”, “docker://”, etc. Returns an error for unknown transports or malformed references without colons.
Source§type Error = TransportConversionError
type Error = TransportConversionError
The type returned in the event of a conversion error.
impl Copy for Transport
impl Eq for Transport
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnwindSafe for Transport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more