Image provides the model for how containerd views container images.
| 33 | |
| 34 | // Image provides the model for how containerd views container images. |
| 35 | type Image struct { |
| 36 | // Name of the image. |
| 37 | // |
| 38 | // To be pulled, it must be a reference compatible with resolvers. |
| 39 | // |
| 40 | // This field is required. |
| 41 | Name string |
| 42 | |
| 43 | // Labels provide runtime decoration for the image record. |
| 44 | // |
| 45 | // There is no default behavior for how these labels are propagated. They |
| 46 | // only decorate the static metadata object. |
| 47 | // |
| 48 | // This field is optional. |
| 49 | Labels map[string]string |
| 50 | |
| 51 | // Target describes the root content for this image. Typically, this is |
| 52 | // a manifest, index or manifest list. |
| 53 | Target ocispec.Descriptor |
| 54 | |
| 55 | CreatedAt, UpdatedAt time.Time |
| 56 | } |
| 57 | |
| 58 | // DeleteOptions provide options on image delete |
| 59 | type DeleteOptions struct { |
nothing calls this directly
no outgoing calls
no test coverage detected