Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/alist_v2/meta.go
1986 views
1
package alist_v2
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
Address string `json:"url" required:"true"`
11
Password string `json:"password"`
12
AccessToken string `json:"access_token"`
13
}
14
15
var config = driver.Config{
16
Name: "AList V2",
17
LocalSort: true,
18
NoUpload: true,
19
DefaultRoot: "/",
20
}
21
22
func init() {
23
op.RegisterDriver(func() driver.Driver {
24
return &AListV2{}
25
})
26
}
27
28