2022-10-27 02:54:49 +00:00
|
|
|
package alist_v3
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
|
|
|
driver.RootPath
|
2024-05-12 09:34:36 +00:00
|
|
|
Address string `json:"url" required:"true"`
|
|
|
|
MetaPassword string `json:"meta_password"`
|
|
|
|
Username string `json:"username"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
PassUAToUpsteam bool `json:"pass_ua_to_upsteam" default:"true"`
|
2022-10-27 02:54:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
|
|
|
Name: "AList V3",
|
|
|
|
LocalSort: true,
|
|
|
|
DefaultRoot: "/",
|
2023-04-27 08:33:01 +00:00
|
|
|
CheckStatus: true,
|
2022-10-27 02:54:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 10:03:30 +00:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
2022-10-27 02:54:49 +00:00
|
|
|
return &AListV3{}
|
|
|
|
})
|
|
|
|
}
|