Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/drivers/kodbox/meta.go
1986 views
1
package kodbox
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
11
Address string `json:"address" required:"true"`
12
UserName string `json:"username" required:"false"`
13
Password string `json:"password" required:"false"`
14
}
15
16
var config = driver.Config{
17
Name: "KodBox",
18
DefaultRoot: "",
19
}
20
21
func init() {
22
op.RegisterDriver(func() driver.Driver {
23
return &KodBox{}
24
})
25
}
26
27