MCPcopy
hub / github.com/borgbackup/borg / pack_metadata

Method pack_metadata

src/borg/crypto/key.py:221–223  ·  view source on GitHub ↗
(self, metadata_dict)

Source from the content-addressed store, hash-verified

219 return sha256(from_key + salt + domain).digest()[:size]
220
221 def pack_metadata(self, metadata_dict):
222 metadata_dict = StableDict(metadata_dict)
223 return msgpack.packb(metadata_dict)
224
225 def unpack_manifest(self, data):
226 """Unpack msgpacked *data* and return manifest."""

Callers 7

writeMethod · 0.80
saveMethod · 0.80
set_metaMethod · 0.80
rebuild_archivesMethod · 0.80
test_spoofed_archiveFunction · 0.80

Calls 1

StableDictClass · 0.85

Tested by 3

test_spoofed_archiveFunction · 0.64