13 Star 118 Fork 24

K8sCat / Gigrator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
settings.py 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
zusie 提交于 2021-05-06 14:55 . fix comment
# -*- coding: utf-8 -*-
"""
@author: hsowan <hsowan.me@gmail.com>
@date: 2020/2/10
"""
import os
# type Git服务器类型, 例如: gitee, github, gitlab, gitea, gogs, coding, 必填
# username 所在Git服务器的用户名, 必填
# token 用户所在Git服务器的授权令牌, 必填
# url Git服务器的访问地址, 例如: https://git.example.com (包括具体协议: http/https)
# 需要设置url的Git服务器有: gitlab, gitea, gogs, 其他Git服务器默认为空即可
# 源Git服务器配置
SOURCE_GIT = {
'type': '',
'username': '',
'token': '',
'url': ''
}
# 目的Git服务器配置
DEST_GIT = {
'type': 'gitlab',
'username': 'hsowan',
'token': '8MUV39-3fHTyn5-Vf2n6',
'url': 'https://git.ncucoder.com'
}
# 支持的Git服务器
SUPPORT_GITS = ['gitlab', 'github', 'gitee', 'gitea', 'coding', 'gogs', 'gf']
# 仓库暂存目录
TEMP_DIR = os.path.join(os.path.dirname(__file__), '.repos')
# GitLab
GITLAB_API_VERSION = '/api/v4'
# GitHub
# 暂不支持GitHub Enterprise
GITHUB_API = 'https://api.github.com/graphql'
GITHUB_SSH_PREFIX = 'git@github.com:'
# 码云
GITEE_API = 'https://gitee.com/api/v5'
GITEE_SSH_PREFIX = 'git@gitee.com:'
# Coding
# 暂不支持私有部署
CODING_SSH_PREFIX = 'git@e.coding.net:'
# Gitea/Gogs
GITEA_API_VERSION = '/api/v1'
# 腾讯工蜂
# 私有化部署请修改地址
GF_SSH_PREFIX = 'git@code.tencent.com'
GF_API = 'https://code.tencent.com/api/v3'
Python
1
https://gitee.com/k8scat/gigrator.git
git@gitee.com:k8scat/gigrator.git
k8scat
gigrator
Gigrator
master

搜索帮助