Documentation ¶
Index ¶
- type Addition
- type Object
- type Wopan
- func (d *Wopan) Config() driver.Config
- func (d *Wopan) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Wopan) Drop(ctx context.Context) error
- func (d *Wopan) GetAddition() driver.Additional
- func (d *Wopan) Init(ctx context.Context) error
- func (d *Wopan) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Wopan) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Wopan) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Wopan) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Wopan) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Wopan) Remove(ctx context.Context, obj model.Obj) error
- func (d *Wopan) Rename(ctx context.Context, srcObj model.Obj, newName string) error
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.RootID // define other RefreshToken string `json:"refresh_token" required:"true"` FamilyID string `json:"family_id" help:"Keep it empty if you want to use your personal drive"` SortRule string `json:"sort_rule" type:"select" options:"name_asc,name_desc,time_asc,time_desc,size_asc,size_desc" default:"name_asc"` AccessToken string `json:"access_token"` }
Click to show internal directories.
Click to hide internal directories.