(self, structure, manifest)
return self._load_image(structure, imagerepo, tag)
Load OCI manifest
Load OCI manifest
Load OCI manifest
def _load_manifest(self, structure, manifest):
        """Load OCI manifest"""
        try:
            tag = manifest["annotations"]["org.opencontainers.image.ref.name"]
        except KeyError:
            tag = Unique().imagetag()
        if '/' in tag and ':' in tag:
            (imagerepo, tag) = tag.split(':', 1)
        else:
            imagerepo = Unique().imagename()
        if self._imagerepo:
            imagerepo = self._imagerepo
        imagetag = imagerepo + ':' + tag
        structure["manifest"][imagetag] = dict()
        structure["manifest"][imagetag]["json"] = \
                self.localrepo.load_json(structure["repolayers"]\
                [manifest["digest"]]["layer_f"])
        structure["manifest"][imagetag]["json_f"] = \
                structure["repolayers"][manifest["digest"]]["layer_f"]
        return self._load_image(structure, imagerepo, tag)
def _load_manifest ( self , structure , manifest ) : try : tag = manifest [ "annotations" ] [ "org.opencontainers.image.ref.name" ] except KeyError : tag = Unique ( ) . imagetag ( ) if '/' in tag and ':' in tag : ( imagerepo , tag ) = tag . split ( ':' , 1 ) else : imagerepo = Unique ( ) . imagename ( ) if self . _imagerepo : imagerepo = self . _imagerepo imagetag = imagerepo + ':' + tag structure [ "manifest" ] [ imagetag ] = dict ( ) structure [ "manifest" ] [ imagetag ] [ "json" ] = self . localrepo . load_json ( structure [ "repolayers" ] [ manifest [ "digest" ] ] [ "layer_f" ] ) structure [ "manifest" ] [ imagetag ] [ "json_f" ] = structure [ "repolayers" ] [ manifest [ "digest" ] ] [ "layer_f" ] return self . _load_image ( structure , imagerepo , tag )