feat(github): add github api driver #7717
Open
+1,182
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add GitHub driver powered by GitHub API
每个目录下只能显示
1,000100,000个子项,不支持操作100M以上大小的文件。会忽略仓库内的
.gitkeep
文件,驱动全权负责该文件的管理。没有考虑仓库里有子模块的情况,
将来补已实现操作子模块时直接返回错误,将来不补充实现对子模块的访问支持。暂时没有实现重命名、和移动,这两个功能要用别的api,暂时还没研究。已实现删除目录是手动递归实现的,很耗时,但这就是官方建议的操作方法,没有更好的方法了。已改用 Tree API 实现已实现Github.put
函数我的本意是希望文件内容每往AList发一点,AList就往GitHub发一点,同时记录进度。但我试了下好像还是变成浏览器给AList发完之后,AList才开始向GitHub发起请求了,我不知道用resty怎么实现这个功能,如果我写的确实有问题麻烦帮我改改,如果这个功能实现不了的话麻烦帮我改成调用CacheFullInTempFile
。Document part AlistGo/docs#396