1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
/*
* supports a RESTful API for the Libpod library
*
* This documentation describes the Podman v2.x+ RESTful API. It consists of a Docker-compatible API and a Libpod API providing support for Podman’s unique features such as pods. To start the service and keep it running for 5,000 seconds (-t 0 runs forever): podman system service -t 5000 & You can then use cURL on the socket using requests documented below. NOTE: if you install the package podman-docker, it will create a symbolic link for /run/docker.sock to /run/podman/podman.sock NOTE: Some fields in the API response JSON are encoded as omitempty, which means that if said field has a zero value, they will not be encoded in the API response. This is a feature to help reduce the size of the JSON responses returned via the API. NOTE: Due to the limitations of [go-swagger](https://github.com/go-swagger/go-swagger), some field values that have a complex type show up as null in the docs as well as in the API responses. This is because the zero value for the field type is null. The field description in the docs will state what type the field is expected to be for such cases. See podman-system-service(1) for more information. Quick Examples: 'podman info' curl --unix-socket /run/podman/podman.sock http://d/v5.0.0/libpod/info 'podman pull quay.io/containers/podman' curl -XPOST --unix-socket /run/podman/podman.sock -v 'http://d/v5.0.0/images/create?fromImage=quay.io%2Fcontainers%2Fpodman' 'podman list images' curl --unix-socket /run/podman/podman.sock -v 'http://d/v5.0.0/libpod/images/json' | jq
*
* The version of the OpenAPI document: 5.0.0
* Contact: podman@lists.podman.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ImageInspect {
/// Architecture is the hardware CPU architecture that the image runs on.
#[serde(rename = "Architecture", skip_serializing_if = "Option::is_none")]
pub architecture: Option<String>,
/// Author is the name of the author that was specified when committing the image, or as specified through MAINTAINER (deprecated) in the Dockerfile.
#[serde(rename = "Author", skip_serializing_if = "Option::is_none")]
pub author: Option<String>,
/// Comment is an optional message that can be set when committing or importing the image.
#[serde(rename = "Comment", skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
#[serde(rename = "Config", skip_serializing_if = "Option::is_none")]
pub config: Option<Box<models::Config>>,
/// Container is for backwards compat but is basically unused
#[serde(rename = "Container", skip_serializing_if = "Option::is_none")]
pub container: Option<String>,
#[serde(rename = "ContainerConfig", skip_serializing_if = "Option::is_none")]
pub container_config: Option<Box<models::Config>>,
/// Created is the date and time at which the image was created, formatted in RFC 3339 nano-seconds (time.RFC3339Nano). This information is only available if present in the image, and omitted otherwise.
#[serde(rename = "Created", skip_serializing_if = "Option::is_none")]
pub created: Option<String>,
/// DockerVersion is the version of Docker that was used to build the image. Depending on how the image was created, this field may be empty.
#[serde(rename = "DockerVersion", skip_serializing_if = "Option::is_none")]
pub docker_version: Option<String>,
#[serde(rename = "GraphDriver", skip_serializing_if = "Option::is_none")]
pub graph_driver: Option<Box<models::GraphDriverData>>,
/// ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image.
#[serde(rename = "Id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Metadata", skip_serializing_if = "Option::is_none")]
pub metadata: Option<Box<models::Metadata>>,
/// OS is the Operating System the image is built to run on.
#[serde(rename = "Os", skip_serializing_if = "Option::is_none")]
pub os: Option<String>,
/// OsVersion is the version of the Operating System the image is built to run on (especially for Windows).
#[serde(rename = "OsVersion", skip_serializing_if = "Option::is_none")]
pub os_version: Option<String>,
/// Parent is the ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry.
#[serde(rename = "Parent", skip_serializing_if = "Option::is_none")]
pub parent: Option<String>,
/// RepoDigests is a list of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated.
#[serde(rename = "RepoDigests", skip_serializing_if = "Option::is_none")]
pub repo_digests: Option<Vec<String>>,
/// RepoTags is a list of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is \"untagged\", in which case it can still be referenced by its ID.
#[serde(rename = "RepoTags", skip_serializing_if = "Option::is_none")]
pub repo_tags: Option<Vec<String>>,
#[serde(rename = "RootFS", skip_serializing_if = "Option::is_none")]
pub root_fs: Option<Box<models::RootFs>>,
/// Size is the total size of the image including all layers it is composed of.
#[serde(rename = "Size", skip_serializing_if = "Option::is_none")]
pub size: Option<i64>,
/// Variant is the CPU architecture variant (presently ARM-only).
#[serde(rename = "Variant", skip_serializing_if = "Option::is_none")]
pub variant: Option<String>,
/// VirtualSize is the total size of the image including all layers it is composed of. Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
#[serde(rename = "VirtualSize", skip_serializing_if = "Option::is_none")]
pub virtual_size: Option<i64>,
}
impl ImageInspect {
pub fn new() -> ImageInspect {
ImageInspect {
architecture: None,
author: None,
comment: None,
config: None,
container: None,
container_config: None,
created: None,
docker_version: None,
graph_driver: None,
id: None,
metadata: None,
os: None,
os_version: None,
parent: None,
repo_digests: None,
repo_tags: None,
root_fs: None,
size: None,
variant: None,
virtual_size: None,
}
}
}