Documentation ¶
Index ¶
- type Addition
- type File
- type Folder
- func (f *Folder) CreateTime() time.Time
- func (f *Folder) GetHash() utils.HashInfo
- func (f *Folder) GetID() string
- func (f *Folder) GetName() string
- func (f *Folder) GetPKey() string
- func (f *Folder) GetPath() string
- func (f *Folder) GetSize() int64
- func (f *Folder) IsDir() bool
- func (f *Folder) ModTime() time.Time
- type WeiYun
- func (d *WeiYun) Config() driver.Config
- func (d *WeiYun) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *WeiYun) Drop(ctx context.Context) error
- func (d *WeiYun) GetAddition() driver.Additional
- func (d *WeiYun) GetRoot(ctx context.Context) (model.Obj, error)
- func (d *WeiYun) Init(ctx context.Context) error
- func (d *WeiYun) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *WeiYun) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *WeiYun) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *WeiYun) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *WeiYun) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (d *WeiYun) Remove(ctx context.Context, obj model.Obj) error
- func (d *WeiYun) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct { RootFolderID string `json:"root_folder_id"` Cookies string `json:"cookies" required:"true"` OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at" default:"name"` OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"` UploadThread string `json:"upload_thread" default:"4" help:"4<=thread<=32"` }
Click to show internal directories.
Click to hide internal directories.