Documentation ¶
Index ¶
- type Addition
- type Virtual
- func (d *Virtual) Config() driver.Config
- func (d *Virtual) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Virtual) Drop(ctx context.Context) error
- func (d *Virtual) GetAddition() driver.Additional
- func (d *Virtual) Init(ctx context.Context) error
- func (d *Virtual) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Virtual) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Virtual) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Virtual) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Virtual) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *Virtual) Remove(ctx context.Context, obj model.Obj) error
- func (d *Virtual) 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 { driver.RootPath NumFile int `json:"num_file" type:"number" default:"30" required:"true"` NumFolder int `json:"num_folder" type:"number" default:"30" required:"true"` MaxFileSize int64 `json:"max_file_size" type:"number" default:"1073741824" required:"true"` MinFileSize int64 `json:"min_file_size" type:"number" default:"1048576" required:"true"` }
type Virtual ¶
func (*Virtual) GetAddition ¶
func (d *Virtual) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.