(self, imagerepo, tag)
return layers_list
Get all layers for a given image image tag
Get all layers for a given image image tag
Get all layers for a given image image tag
def get_layers(self, imagerepo, tag):
        """Get all layers for a given image image tag"""
        layers_list = []
        tag_dir = self.cd_imagerepo(imagerepo, tag)
        if tag_dir:
            for fname in os.listdir(tag_dir):
                filename = tag_dir + "/" + fname
                if os.path.islink(filename):
                    size = FileUtil(filename).size()
                    layers_list.append((filename, size))
        return layers_list
def get_layers ( self , imagerepo , tag ) : layers_list = [ ] tag_dir = self . cd_imagerepo ( imagerepo , tag ) if tag_dir : for fname in os . listdir ( tag_dir ) : filename = tag_dir + "/" + fname if os . path . islink ( filename ) : size = FileUtil ( filename ) . size ( ) layers_list . append ( ( filename , size ) ) return layers_list