feat(drivers): add kodbox storage (#7059 close #7058)

- kodbox: https://github.com/kalcaddle/kodbox
This commit is contained in:
ice yao
2024-08-22 00:46:38 +08:00
committed by GitHub
parent 34b6785fab
commit d2514d236f
5 changed files with 409 additions and 0 deletions

25
drivers/kodbox/meta.go Normal file
View File

@ -0,0 +1,25 @@
package kodbox
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/op"
)
type Addition struct {
driver.RootPath
Address string `json:"address" required:"true"`
UserName string `json:"username" required:"false"`
Password string `json:"password" required:"false"`
}
var config = driver.Config{
Name: "KodBox",
DefaultRoot: "",
}
func init() {
op.RegisterDriver(func() driver.Driver {
return &KodBox{}
})
}