def _populate_blob(content): digest = str(sha256_digest(content)) location = ImageStorageLocation.get(name="local_us") blob = store_blob_record_and_temp_link("devtable", "newrepo", digest, location, len(content), 120) storage.put_content(["local_us"], get_layer_path(blob), content) return blob, digest
def get_blob(layer): content = Bytes.for_string_or_unicode(layer).as_encoded_str() digest = str(sha256_digest(content)) blob = store_blob_record_and_temp_link( self.orgname, self.upstream_repository, digest, ImageStorageLocation.get(name="local_us"), len(content), 120, ) storage.put_content(["local_us"], get_layer_path(blob), content) return blob, digest
def _populate_blob(digest): location = ImageStorageLocation.get(name='local_us') store_blob_record_and_temp_link('devtable', 'simple', digest, location, 1, 120)
def _populate_blob(digest): location = ImageStorageLocation.get(name="local_us") store_blob_record_and_temp_link("devtable", "simple", digest, location, 1, 120)