mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 05:44:04 +08:00

* feat: add Seafile driver * docs: add Seafile support * refactor: optimization * fix: close redirect on `move` and `rename` Co-authored-by: Noah Hsu <i@nn.ci>
27 lines
525 B
Go
27 lines
525 B
Go
package seafile
|
|
|
|
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:"true"`
|
|
Password string `json:"password" required:"true"`
|
|
RepoId string `json:"repoId" required:"true"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "Seafile",
|
|
DefaultRoot: "/",
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Seafile{}
|
|
})
|
|
}
|