(self)
return (None, None)
Load attributes from image TAGs that have been previously
        selected via cd_imagerepo(). Supports images of type v1 and v2.
        Returns: (container JSON, list of layer files).
Load attributes from image TAGs that have been previously
        selected via cd_imagerepo(). Supports images of type v1 and v2.
        Returns: (container JSON, list of layer files).
Load attributes from image TAGs that have been previously selected via cd_imagerepo () . Supports images of type v1 and v2 . Returns : ( container JSON list of layer files ) .
def get_image_attributes(self):
        """Load attributes from image TAGs that have been previously
        selected via cd_imagerepo(). Supports images of type v1 and v2.
        Returns: (container JSON, list of layer files).
        """
        directory = self.cur_tagdir
        if os.path.exists(directory + "/v1"):   # if dockerhub API v1
            return self._get_image_attributes_v1(directory)

        if os.path.exists(directory + "/v2"):  # if dockerhub API v1
            manifest = self.load_json("manifest")
            if manifest and "fsLayers" in manifest:
                return self._get_image_attributes_v2_s1(directory, manifest)
            if manifest and "layers" in manifest:
                return self._get_image_attributes_v2_s2(directory, manifest)

        return (None, None)
def get_image_attributes ( self ) : directory = self . cur_tagdir if os . path . exists ( directory + "/v1" ) : # if dockerhub API v1 return self . _get_image_attributes_v1 ( directory ) if os . path . exists ( directory + "/v2" ) : # if dockerhub API v1 manifest = self . load_json ( "manifest" ) if manifest and "fsLayers" in manifest : return self . _get_image_attributes_v2_s1 ( directory , manifest ) if manifest and "layers" in manifest : return self . _get_image_attributes_v2_s2 ( directory , manifest ) return ( None , None )