huawei.py 948 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2024/08/07 19:14:51
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc : huawei platform
  8. '''
  9. from repo_sync.platform.base_platform import BasePlatform
  10. import csv, subprocess,os,json
  11. from repo_sync.utils.colors import bcolors
  12. class HuaweiIE(BasePlatform):
  13. """ huawei platform class """
  14. def __init__(self, username: str, token: str, host: str = None, params: dict = None) -> None:
  15. super().__init__(username=username, token=token)
  16. self._host = 'https://git.huawei.com' if host is None else host
  17. def clone(self, repo_name: str, repo_url: str, branch: str = None) -> bool:
  18. pass
  19. def pull(self, repo_name: str, branch: str = None) -> bool:
  20. pass
  21. def push(self, repo_name: str, branch: str = None) -> bool:
  22. pass
  23. def delete(self, repo_name: str) -> bool:
  24. pass