Documentation
¶
Index ¶
- type Addition
- type Alias
- func (d *Alias) Config() driver.Config
- func (d *Alias) Drop(ctx context.Context) error
- func (d *Alias) Get(ctx context.Context, path string) (model.Obj, error)
- func (d *Alias) GetAddition() driver.Additional
- func (d *Alias) Init(ctx context.Context) error
- func (d *Alias) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Alias) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Alias) Remove(ctx context.Context, obj model.Obj) error
- func (d *Alias) 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.RootPath
// define other
Paths string `json:"paths" required:"true" type:"text"`
ProtectSameName bool `json:"protect_same_name" default:"true" required:"false" help:"Protects same-name files from Delete or Rename"`
DownloadConcurrency int `json:"download_concurrency" default:"0" required:"false" type:"number" help:"Need to enable proxy"`
DownloadPartSize int `json:"download_part_size" default:"0" type:"number" required:"false" help:"Need to enable proxy. Unit: KB"`
}
Click to show internal directories.
Click to hide internal directories.