alist/drivers/teldrive/meta.go
TwoOnefour 64c32773c5 feat(Teldrive): Add driver Teldrive
https://github.com/tgdrive/teldrive

[Official api docs](https://teldrive-docs.pages.dev/docs/api)

implement:
* copy
* move
* link (302 share and local proxy)
* chunk upload
* rename

Not yet implement:
- login (scan qrcode or auth by password)
- refresh token
2025-05-31 17:02:38 +08:00

28 lines
729 B
Go

package teldrive
import (
"github.com/alist-org/alist/v3/internal/driver"
"github.com/alist-org/alist/v3/internal/op"
)
type Addition struct {
// Usually one of two
driver.RootPath
// define other
Address string `json:"url" required:"true"`
ChunkSize int64 `json:"chunk_size" type:"number" default:"4" help:"Chunk size in MiB"`
Cookie string `json:"cookie" type:"string" required:"true" help:"access_token=xxx"`
UploadConcurrency int64 `json:"upload_concurrency" type:"number" default:"4" help:"Concurrency upload requests"`
}
var config = driver.Config{
Name: "Teldrive",
DefaultRoot: "/",
}
func init() {
op.RegisterDriver(func() driver.Driver {
return &Teldrive{}
})
}