Files
OpenList/drivers/aliyundrive/meta.go

31 lines
935 B
Go
Raw Normal View History

2022-09-01 22:13:37 +08:00
package aliyundrive
2022-08-31 20:46:19 +08:00
import (
"github.com/OpenListTeam/OpenList/v4/internal/driver"
"github.com/OpenListTeam/OpenList/v4/internal/op"
2022-08-31 20:46:19 +08:00
)
type Addition struct {
2022-09-04 13:07:53 +08:00
driver.RootID
RefreshToken string `json:"refresh_token" required:"true"`
//DeviceID string `json:"device_id" required:"true"`
2022-08-31 20:46:19 +08:00
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at,created_at"`
OrderDirection string `json:"order_direction" type:"select" options:"ASC,DESC"`
RapidUpload bool `json:"rapid_upload"`
InternalUpload bool `json:"internal_upload"`
2022-08-31 20:46:19 +08:00
}
var config = driver.Config{
2022-09-01 22:13:37 +08:00
Name: "Aliyundrive",
2022-08-31 20:46:19 +08:00
DefaultRoot: "root",
2023-02-25 14:28:27 +08:00
Alert: `warning|There may be an infinite loop bug in this driver.
Deprecated, no longer maintained and will be removed in a future version.
We recommend using the official driver AliyundriveOpen.`,
2022-08-31 20:46:19 +08:00
}
func init() {
op.RegisterDriver(func() driver.Driver {
return &AliDrive{}
})
2022-08-31 20:46:19 +08:00
}