pub enum RegistryTransport {
Https,
PlainHttp,
}Expand description
How the registry a pulled reference names is reached.
Variants§
Https
TLS, as every upstream registry (ECR Public, Docker Hub, …) serves.
PlainHttp
Plain HTTP: fakecloud’s own OCI registry, which an AWS ECR URI is
rewritten to. Docker treats a loopback registry as insecure on its
own, but Podman insists on TLS for every registry unless told
otherwise, so its pull fails with “server gave HTTP response to HTTPS
client” without --tls-verify=false.
Implementations§
Source§impl RegistryTransport
impl RegistryTransport
Sourcepub fn for_local_rewrite(rewritten: bool) -> Self
pub fn for_local_rewrite(rewritten: bool) -> Self
The transport for a pull whose reference was (true) or was not
rewritten to fakecloud’s registry by
crate::ecr_uri::translate_to_local_at.
Trait Implementations§
Source§impl Clone for RegistryTransport
impl Clone for RegistryTransport
impl Copy for RegistryTransport
Source§impl Debug for RegistryTransport
impl Debug for RegistryTransport
impl Eq for RegistryTransport
Source§impl PartialEq for RegistryTransport
impl PartialEq for RegistryTransport
impl StructuralPartialEq for RegistryTransport
Auto Trait Implementations§
impl Freeze for RegistryTransport
impl RefUnwindSafe for RegistryTransport
impl Send for RegistryTransport
impl Sync for RegistryTransport
impl Unpin for RegistryTransport
impl UnsafeUnpin for RegistryTransport
impl UnwindSafe for RegistryTransport
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.