Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/github_releases/meta.go
1986 views
1
package github_releases
2
3
import (
4
"github.com/alist-org/alist/v3/internal/driver"
5
"github.com/alist-org/alist/v3/internal/op"
6
)
7
8
type Addition struct {
9
driver.RootID
10
RepoStructure string `json:"repo_structure" type:"text" required:"true" default:"alistGo/alist" help:"structure:[path:]org/repo"`
11
ShowReadme bool `json:"show_readme" type:"bool" default:"true" help:"show README、LICENSE file"`
12
Token string `json:"token" type:"string" required:"false" help:"GitHub token, if you want to access private repositories or increase the rate limit"`
13
ShowAllVersion bool `json:"show_all_version" type:"bool" default:"false" help:"show all versions"`
14
ConcurrentRequests bool `json:"concurrent_requests" type:"bool" default:"false" help:"To concurrently request the GitHub API, you must enter a GitHub token"`
15
GitHubProxy string `json:"gh_proxy" type:"string" default:"" help:"GitHub proxy, e.g. https://ghproxy.net/github.com or https://gh-proxy.com/github.com "`
16
}
17
18
var config = driver.Config{
19
Name: "GitHub Releases",
20
LocalSort: false,
21
OnlyLocal: false,
22
OnlyProxy: false,
23
NoCache: false,
24
NoUpload: false,
25
NeedMs: false,
26
DefaultRoot: "",
27
CheckStatus: false,
28
Alert: "",
29
NoOverwriteUpload: false,
30
}
31
32
func init() {
33
op.RegisterDriver(func() driver.Driver {
34
return &GithubReleases{}
35
})
36
}
37
38