Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/lenovonas_share/meta.go
1988 views
1
package LenovoNasShare
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
ShareId string `json:"share_id" required:"true" help:"The part after the last / in the shared link"`
11
SharePwd string `json:"share_pwd" required:"true" help:"The password of the shared link"`
12
Host string `json:"host" required:"true" default:"https://siot-share.lenovo.com.cn" help:"You can change it to your local area network"`
13
}
14
15
var config = driver.Config{
16
Name: "LenovoNasShare",
17
LocalSort: true,
18
OnlyLocal: false,
19
OnlyProxy: false,
20
NoCache: false,
21
NoUpload: true,
22
NeedMs: false,
23
DefaultRoot: "",
24
CheckStatus: false,
25
Alert: "",
26
NoOverwriteUpload: false,
27
}
28
29
func init() {
30
op.RegisterDriver(func() driver.Driver {
31
return &LenovoNasShare{}
32
})
33
}
34
35