MCPcopy Index your code
hub / github.com/borgbackup/borg / __init__

Method __init__

src/borg/crypto/keymanager.py:44–54  ·  view source on GitHub ↗
(self, repository)

Source from the content-addressed store, hash-verified

42
43class KeyManager:
44 def __init__(self, repository):
45 self.repository = repository
46 self.keyblob = None
47 self.keyblob_storage = None
48
49 manifest_chunk = repository.get_manifest()
50 manifest_data = RepoObj.extract_crypted_data(manifest_chunk)
51 key = identify_key(manifest_data)
52 self.keyblob_storage = key.STORAGE
53 if self.keyblob_storage == KeyBlobStorage.NO_STORAGE:
54 raise UnencryptedRepo()
55
56 def load_keyblob(self):
57 if self.keyblob_storage == KeyBlobStorage.KEYFILE:

Callers

nothing calls this directly

Calls 4

identify_keyFunction · 0.85
UnencryptedRepoClass · 0.85
get_manifestMethod · 0.45
extract_crypted_dataMethod · 0.45

Tested by

no test coverage detected