Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/aliyundrive_share/meta.go
1986 views
1
package aliyundrive_share
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
RefreshToken string `json:"refresh_token" required:"true"`
10
ShareId string `json:"share_id" required:"true"`
11
SharePwd string `json:"share_pwd"`
12
driver.RootID
13
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"`
14
OrderDirection string `json:"order_direction" type:"select" options:"ASC,DESC"`
15
}
16
17
var config = driver.Config{
18
Name: "AliyundriveShare",
19
LocalSort: false,
20
OnlyProxy: false,
21
NoUpload: true,
22
DefaultRoot: "root",
23
}
24
25
func init() {
26
op.RegisterDriver(func() driver.Driver {
27
return &AliyundriveShare{}
28
})
29
}
30
31