pub enum Image {
OfficialRelease {
major: Major,
minor: Minor,
os: OS,
digest: Option<Digest>,
},
OfficialReleaseCandidate {
major: Major,
number: ReleaseCandidateNumber,
os: OS,
digest: Option<Digest>,
},
OfficialLatest {
os: OS,
digest: Option<Digest>,
},
Explicit(Reference),
}Expand description
Postgresql images supported, references images from https://hub.docker.com/_/postgres
Variants§
OfficialRelease
Official release
OfficialReleaseCandidate
OfficialRelease candidate
OfficialLatest
Latest image on docker.com
Only use that one for quick and dirty testing, it’s recommended to always pin
specific images in config files. Also note that pg-ephemeral currently never refreshes
latest once cached in the local registry it’s never refreshed.
Explicit(Reference)
Explicit OCI image reference, bypassing the official postgres image naming
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Image> for Reference
let explicit = pg_ephemeral::Image::Explicit("my-registry.com/postgres:17".parse().unwrap());
let reference: ociman::image::Reference = (&explicit).into();
assert_eq!(reference.to_string(), "my-registry.com/postgres:17");
impl From<&Image> for Reference
let explicit = pg_ephemeral::Image::Explicit("my-registry.com/postgres:17".parse().unwrap());
let reference: ociman::image::Reference = (&explicit).into();
assert_eq!(reference.to_string(), "my-registry.com/postgres:17");impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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