mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2026-10-10 13:03:09 +08:00
874dc292ae
fix: go modules with tagged versions
30 lines
854 B
Go
30 lines
854 B
Go
package uss
|
|
|
|
import (
|
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootPath
|
|
Bucket string `json:"bucket" required:"true"`
|
|
Endpoint string `json:"endpoint" required:"true"`
|
|
OperatorName string `json:"operator_name" required:"true"`
|
|
OperatorPassword string `json:"operator_password" required:"true"`
|
|
AntiTheftChainToken string `json:"anti_theft_chain_token" required:"false" default:""`
|
|
//CustomHost string `json:"custom_host"` //Endpoint与CustomHost作用相同,去除
|
|
SignURLExpire int `json:"sign_url_expire" type:"number" default:"4"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "USS",
|
|
LocalSort: true,
|
|
DefaultRoot: "/",
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &USS{}
|
|
})
|
|
}
|