processPoint 处理单个挂载点的文件列表
(point *MountPoint, path string, args model.ListArgs)
| 39 | |
| 40 | // processPoint 处理单个挂载点的文件列表 |
| 41 | func (d *GithubReleases) processPoint(point *MountPoint, path string, args model.ListArgs) []File { |
| 42 | var pointFiles []File |
| 43 | |
| 44 | if !d.Addition.ShowAllVersion { // latest |
| 45 | point.RequestLatestRelease(d.GetRequest, args.Refresh) |
| 46 | pointFiles = d.processLatestVersion(point, path) |
| 47 | } else { // all version |
| 48 | point.RequestReleases(d.GetRequest, args.Refresh) |
| 49 | pointFiles = d.processAllVersions(point, path) |
| 50 | } |
| 51 | |
| 52 | return pointFiles |
| 53 | } |
| 54 | |
| 55 | // processLatestVersion 处理最新版本的逻辑 |
| 56 | func (d *GithubReleases) processLatestVersion(point *MountPoint, path string) []File { |
no test coverage detected