[][src]Struct dockers::images::Image

pub struct Image {
    pub Id: String,
    pub ParentId: String,
    pub RepoTags: Option<Vec<String>>,
    pub RepoDigests: Option<Vec<String>>,
    pub Created: u64,
    pub Size: u64,
    pub VirtualSize: u64,
    pub SharedSize: i64,
    pub Labels: Option<HashMap<String, String>>,
    pub Containers: i32,
}

Fields

Id: StringParentId: StringRepoTags: Option<Vec<String>>RepoDigests: Option<Vec<String>>Created: u64Size: u64VirtualSize: u64SharedSize: i64Labels: Option<HashMap<String, String>>Containers: i32

Methods

impl Image[src]

Container is the main structure for handling containers You can create an empty container or you can pass the ID of an existing one or the Image to create a new one.

Example

extern crate dockers;

use dockers::Image;

let image = Image::pull("rust".to_owned(), None)
    .expect("Image not pulled");

image.remove().expect("Couldn't remove the image");

pub fn create(
    source: Source,
    value: String,
    tag: Option<String>
) -> Result<Image, DockerApiError>
[src]

pub fn pull(image: String, tag: Option<String>) -> Result<Image, DockerApiError>[src]

pub fn list() -> Result<Vec<Image>, DockerApiError>[src]

pub fn remove(self) -> Result<Vec<DeletedImage>, DockerApiError>[src]

Trait Implementations

impl Client for Image[src]

fn get_response_from_api(
    &self,
    api_endpoint: &str,
    method: Method,
    query_params: Option<&str>,
    body: Option<&str>
) -> Result<Response, DockerApiError>
[src]

impl Default for Image[src]

impl Debug for Image[src]

impl Serialize for Image[src]

impl<'de> Deserialize<'de> for Image[src]

Auto Trait Implementations

impl Send for Image

impl Sync for Image

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]