lenderkey / gearshift

Encryption at Rest Server / Efficient Backup for Immutable Files
0 stars 0 forks source link

Delete unused code? #15

Open re-spawn opened 8 months ago

re-spawn commented 8 months ago

Even aside from Vault there's quite a bit of unused code.

@dpjanes should I put together a summary for your review?

dpjanes commented 8 months ago

Sure thank you!

re-spawn commented 8 months ago

helpers.py

def sha256_file(fd:BinaryIO) -> str:
def md5_data(*av) -> str:
if __name__ == '__main__':

context.py

import sqlite3
self._connection
def src_root(self):
def src_host(self):
def src_url(self):
def src_user(self):
def src_folder(self):
def src_pem(self):
def src_token_id(self):
def src_path(self, src_name):
def dst_link_path(self, key_hash:str, data_hash:str) -> str:
def dst_has_hash(self, data_hash):
def ingest_link(self, data_hash:str, dst_name:str):
if __name__ == '__main__':