1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-10 11:48:53 +00:00

Add upgrade repo enc algo RPC (#743)

* Add upgrade repo enc algo RPC

* Add test upgrade repo enc algo

* Add test upgrade repo enc algo

---------

Co-authored-by: Heran Yang <heran.yang@seafile.com>
This commit is contained in:
feiniks
2025-03-19 11:31:05 +08:00
committed by GitHub
parent 7753e8e02a
commit 24b61c929c
9 changed files with 308 additions and 72 deletions

View File

@@ -640,6 +640,12 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
pass
change_repo_passwd = seafile_change_repo_passwd
# Upgrade repo enc algorithm
@searpc_func("int", ["string", "string", "string", "string", "string"])
def seafile_upgrade_repo_enc_algorithm (repo_id, user, passwd, pwd_hash_algo, pwd_hash_params):
pass
upgrade_repo_enc_algorithm = seafile_upgrade_repo_enc_algorithm
# Clean trash
@searpc_func("int", ["string", "int"])
def clean_up_repo_history(repo_id, keep_days):