(self, structure, imagetag)
return ("", [])
Search for image:tag in manifest and return Config and layer ids
Search for image:tag in manifest and return Config and layer ids
Search for image : tag in manifest and return Config and layer ids
def _get_from_manifest(self, structure, imagetag):
        """Search for image:tag in manifest and return Config and layer ids"""
        if "manifest" in structure:
            for repotag in structure["manifest"]:
                if imagetag in repotag["RepoTags"]:
                    layers = []
                    for layer_file in repotag["Layers"]:
                        #layers.append(layer_file.replace("/layer.tar", ""))
                        layers.append(layer_file)
                    layers.reverse()
                    return (repotag["Config"], layers)
        return ("", [])
def _get_from_manifest ( self , structure , imagetag ) : if "manifest" in structure : for repotag in structure [ "manifest" ] : if imagetag in repotag [ "RepoTags" ] : layers = [ ] for layer_file in repotag [ "Layers" ] : #layers.append(layer_file.replace("/layer.tar", "")) layers . append ( layer_file ) layers . reverse ( ) return ( repotag [ "Config" ] , layers ) return ( "" , [ ] )