Documentation
¶
Index ¶
- type Addition
- type Alias
- func (d *Alias) ArchiveDecompress(ctx context.Context, srcObj, dstDir model.Obj, ...) error
- func (d *Alias) Config() driver.Config
- func (d *Alias) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Alias) Drop(ctx context.Context) error
- func (d *Alias) Extract(ctx context.Context, obj model.Obj, args model.ArchiveInnerArgs) (*model.Link, error)
- func (d *Alias) Get(ctx context.Context, path string) (model.Obj, error)
- func (d *Alias) GetAddition() driver.Additional
- func (d *Alias) GetArchiveMeta(ctx context.Context, obj model.Obj, args model.ArchiveArgs) (model.ArchiveMeta, error)
- 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) ListArchive(ctx context.Context, obj model.Obj, args model.ArchiveInnerArgs) ([]model.Obj, error)
- func (d *Alias) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Alias) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Alias) Other(ctx context.Context, args model.OtherArgs) (interface{}, error)
- func (d *Alias) Put(ctx context.Context, dstDir model.Obj, s model.FileStreamer, ...) error
- func (d *Alias) PutURL(ctx context.Context, dstDir model.Obj, name, url string) 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"`
ParallelWrite bool `json:"parallel_write" type:"bool" default:"false"`
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"`
Writable bool `json:"writable" type:"bool" default:"false"`
ProviderPassThrough bool `json:"provider_pass_through" type:"bool" default:"false"`
DetailsPassThrough bool `json:"details_pass_through" type:"bool" default:"false"`
}
type Alias ¶
func (*Alias) ArchiveDecompress ¶
func (*Alias) GetAddition ¶
func (d *Alias) GetAddition() driver.Additional
func (*Alias) GetArchiveMeta ¶
func (d *Alias) GetArchiveMeta(ctx context.Context, obj model.Obj, args model.ArchiveArgs) (model.ArchiveMeta, error)
func (*Alias) ListArchive ¶
func (*Alias) Put ¶
func (d *Alias) Put(ctx context.Context, dstDir model.Obj, s model.FileStreamer, up driver.UpdateProgress) error
Click to show internal directories.
Click to hide internal directories.