File size: 709 Bytes
7107f0b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package cloudreve

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:"address" required:"true"`
	Username                 string `json:"username"`
	Password                 string `json:"password"`
	Cookie                   string `json:"cookie"`
	CustomUA                 string `json:"custom_ua"`
	EnableThumbAndFolderSize bool   `json:"enable_thumb_and_folder_size"`
}

var config = driver.Config{
	Name:        "Cloudreve",
	DefaultRoot: "/",
}

func init() {
	op.RegisterDriver(func() driver.Driver {
		return &Cloudreve{}
	})
}