Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add containers/storage as a backend type called 'oci-storage'. The image's blobs are stored either as oci-storage layers (if they look like archived layers) or (alongside the manifest and signatures) as named big data items associated with the image. Inspection data and record-keeping (so that we can remember which blobs were layers and which weren't) are encoded as a JSON object which is stored as the oci-storage image's metadata. The type of compression which we detected around a layer blob when it was imported is encoded as a field in a JSON object which is stored as the oci-storage layer's metadata, and is applied if we need to export the layer later. If we find ourselves importing an image with the same ID as an image that we already have, we return an error. If we find ourselves importing an image which contains layers which we already have, we flag an error if its contents differ from the one we already have, otherwise we accept it. If we find ourselves importing an image that wants to be tagged with a name that is already in use, the name is assigned to the new image and the old image remains otherwise unmodified. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
- Loading branch information