Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/aliyundrive/meta.go
1986 views
1
package aliyundrive
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
RefreshToken string `json:"refresh_token" required:"true"`
11
DeviceID string `json:"device_id" required:"true"`
12
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"`
13
OrderDirection string `json:"order_direction" type:"select" options:"ASC,DESC"`
14
RapidUpload bool `json:"rapid_upload"`
15
InternalUpload bool `json:"internal_upload"`
16
}
17
18
var config = driver.Config{
19
Name: "Aliyundrive",
20
DefaultRoot: "root",
21
Alert: `warning|There may be an infinite loop bug in this driver.
22
Deprecated, no longer maintained and will be removed in a future version.
23
We recommend using the official driver AliyundriveOpen.`,
24
}
25
26
func init() {
27
op.RegisterDriver(func() driver.Driver {
28
return &AliDrive{}
29
})
30
}
31
32