[−][src]Struct opencontainers::image::Image
Methods
impl<'a> Image<'a>
[src]
pub fn new(
registry: &'a Registry,
name: &str,
reference: &str
) -> Result<Self, RegistryError>
[src]
registry: &'a Registry,
name: &str,
reference: &str
) -> Result<Self, RegistryError>
Create a new image given a specific repository
Consider using Registry::image instead.
Example
let image = opencontainers::Image::new(®istry, "library/hello-world", "latest") .expect("Could not get image");
pub fn manifest(&self) -> &ManifestV2
[src]
Return an image manifest
Example
let manifest = registry.image("library/hello-world", "latest") .expect("Could not get image") .manifest();
pub fn get_blob(&self, digest: &Digest) -> Result<String, RegistryError>
[src]
pub fn config(&self) -> Result<ImageV1, RegistryError>
[src]
Return the image runtime configuration
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,