(self, structure)
return status
Verify the structure of a v2 schema 1 image repository
Verify the structure of a v2 schema 1 image repository
Verify the structure of a v2 schema 1 image repository
def _verify_image_v2_s1(self, structure):
        """Verify the structure of a v2 schema 1 image repository"""
        status = True
        for manifest_layer in structure["manifest"]["fsLayers"]:
            if manifest_layer["blobSum"] not in structure["repolayers"]:
                Msg().err("Error: layer in manifest does not exist",
                          "in repo", manifest_layer["blobSum"])
                status = False
                continue
        return status
def _verify_image_v2_s1 ( self , structure ) : status = True for manifest_layer in structure [ "manifest" ] [ "fsLayers" ] : if manifest_layer [ "blobSum" ] not in structure [ "repolayers" ] : Msg ( ) . err ( "Error: layer in manifest does not exist" , "in repo" , manifest_layer [ "blobSum" ] ) status = False continue return status