mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 15:36:37 +00:00
Add search repos by name rpc.
This commit is contained in:
@@ -66,6 +66,11 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
|
||||
pass
|
||||
list_owned_repos = seafile_list_owned_repos
|
||||
|
||||
@searpc_func("objlist", ["string"])
|
||||
def seafile_search_repos_by_name(name):
|
||||
pass
|
||||
search_repos_by_name = seafile_search_repos_by_name
|
||||
|
||||
@searpc_func("int64", ["string"])
|
||||
def seafile_server_repo_size(repo_id):
|
||||
pass
|
||||
|
@@ -136,6 +136,9 @@ class SeafileAPI(object):
|
||||
1 if ret_corrupted else 0,
|
||||
start, limit)
|
||||
|
||||
def search_repos_by_name(self, name):
|
||||
return seafserv_threaded_rpc.search_repos_by_name(name)
|
||||
|
||||
def get_orphan_repo_list(self):
|
||||
return seafserv_threaded_rpc.get_orphan_repo_list()
|
||||
|
||||
|
Reference in New Issue
Block a user