github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/api/types/image_summary.go (about)

     1  package types
     2  
     3  // This file was generated by the swagger tool.
     4  // Editing this file might prove futile when you re-run the swagger generate command
     5  
     6  // ImageSummary image summary
     7  // swagger:model ImageSummary
     8  type ImageSummary struct {
     9  
    10  	// Number of containers using this image. Includes both stopped and running
    11  	// containers.
    12  	//
    13  	// This size is not calculated by default, and depends on which API endpoint
    14  	// is used. `-1` indicates that the value has not been set / calculated.
    15  	//
    16  	// Required: true
    17  	Containers int64 `json:"Containers"`
    18  
    19  	// Date and time at which the image was created as a Unix timestamp
    20  	// (number of seconds sinds EPOCH).
    21  	//
    22  	// Required: true
    23  	Created int64 `json:"Created"`
    24  
    25  	// ID is the content-addressable ID of an image.
    26  	//
    27  	// This identifier is a content-addressable digest calculated from the
    28  	// image's configuration (which includes the digests of layers used by
    29  	// the image).
    30  	//
    31  	// Note that this digest differs from the `RepoDigests` below, which
    32  	// holds digests of image manifests that reference the image.
    33  	//
    34  	// Required: true
    35  	ID string `json:"Id"`
    36  
    37  	// User-defined key/value metadata.
    38  	// Required: true
    39  	Labels map[string]string `json:"Labels"`
    40  
    41  	// ID of the parent image.
    42  	//
    43  	// Depending on how the image was created, this field may be empty and
    44  	// is only set for images that were built/created locally. This field
    45  	// is empty if the image was pulled from an image registry.
    46  	//
    47  	// Required: true
    48  	ParentID string `json:"ParentId"`
    49  
    50  	// List of content-addressable digests of locally available image manifests
    51  	// that the image is referenced from. Multiple manifests can refer to the
    52  	// same image.
    53  	//
    54  	// These digests are usually only available if the image was either pulled
    55  	// from a registry, or if the image was pushed to a registry, which is when
    56  	// the manifest is generated and its digest calculated.
    57  	//
    58  	// Required: true
    59  	RepoDigests []string `json:"RepoDigests"`
    60  
    61  	// List of image names/tags in the local image cache that reference this
    62  	// image.
    63  	//
    64  	// Multiple image tags can refer to the same image, and this list may be
    65  	// empty if no tags reference the image, in which case the image is
    66  	// "untagged", in which case it can still be referenced by its ID.
    67  	//
    68  	// Required: true
    69  	RepoTags []string `json:"RepoTags"`
    70  
    71  	// Total size of image layers that are shared between this image and other
    72  	// images.
    73  	//
    74  	// This size is not calculated by default. `-1` indicates that the value
    75  	// has not been set / calculated.
    76  	//
    77  	// Required: true
    78  	SharedSize int64 `json:"SharedSize"`
    79  
    80  	// Total size of the image including all layers it is composed of.
    81  	//
    82  	// Required: true
    83  	Size int64 `json:"Size"`
    84  
    85  	// Total size of the image including all layers it is composed of.
    86  	//
    87  	// In versions of Docker before v1.10, this field was calculated from
    88  	// the image itself and all of its parent images. Docker v1.10 and up
    89  	// store images self-contained, and no longer use a parent-chain, making
    90  	// this field an equivalent of the Size field.
    91  	//
    92  	// This field is kept for backward compatibility, but may be removed in
    93  	// a future version of the API.
    94  	//
    95  	// Required: true
    96  	VirtualSize int64 `json:"VirtualSize"`
    97  }