Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/gitee/meta.go
1986 views
1
package gitee
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.RootPath
10
Endpoint string `json:"endpoint" type:"string" help:"Gitee API endpoint, default https://gitee.com/api/v5"`
11
Token string `json:"token" type:"string"`
12
Owner string `json:"owner" type:"string" required:"true"`
13
Repo string `json:"repo" type:"string" required:"true"`
14
Ref string `json:"ref" type:"string" help:"Branch, tag or commit SHA, defaults to repository default branch"`
15
DownloadProxy string `json:"download_proxy" type:"string" help:"Prefix added before download URLs, e.g. https://mirror.example.com/"`
16
Cookie string `json:"cookie" type:"string" help:"Cookie returned from user info request"`
17
}
18
19
var config = driver.Config{
20
Name: "Gitee",
21
LocalSort: true,
22
DefaultRoot: "/",
23
}
24
25
func init() {
26
op.RegisterDriver(func() driver.Driver {
27
return &Gitee{}
28
})
29
}
30
31