Documentation ¶
Index ¶
- type Addition
- type Cloudreve
- func (d *Cloudreve) Config() driver.Config
- func (d *Cloudreve) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Cloudreve) Drop(ctx context.Context) error
- func (d *Cloudreve) GetAddition() driver.Additional
- func (d *Cloudreve) GetThumb(file Object) (model.Thumbnail, error)
- func (d *Cloudreve) Init(ctx context.Context) error
- func (d *Cloudreve) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Cloudreve) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Cloudreve) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Cloudreve) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Cloudreve) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Cloudreve) Remove(ctx context.Context, obj model.Obj) error
- func (d *Cloudreve) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type Config
- type DirectoryProp
- type DirectoryResp
- type Object
- type Policy
- type Resp
- type UploadInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
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"` }
type Cloudreve ¶
func (*Cloudreve) GetAddition ¶
func (d *Cloudreve) GetAddition() driver.Additional
type DirectoryProp ¶
type DirectoryProp struct {
Size int `json:"size"`
}
type DirectoryResp ¶
type UploadInfo ¶
Click to show internal directories.
Click to hide internal directories.