Documentation
¶
Index ¶
- type Addition
- type Chunk
- func (d *Chunk) Config() driver.Config
- func (d *Chunk) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Chunk) Drop(ctx context.Context) error
- func (d *Chunk) Get(ctx context.Context, path string) (model.Obj, error)
- func (d *Chunk) GetAddition() driver.Additional
- func (d *Chunk) GetDetails(ctx context.Context) (*model.StorageDetails, error)
- func (d *Chunk) Init(ctx context.Context) error
- func (d *Chunk) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Chunk) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Chunk) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Chunk) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Chunk) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, ...) error
- func (d *Chunk) Remove(ctx context.Context, obj model.Obj) error
- func (d *Chunk) 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 {
RemotePath string `json:"remote_path" required:"true"`
PartSize int64 `json:"part_size" required:"true" type:"number" help:"bytes"`
ChunkLargeFileOnly bool `json:"chunk_large_file_only" default:"false" help:"chunk only if file size > part_size"`
ChunkPrefix string `json:"chunk_prefix" type:"string" default:"[openlist_chunk]" help:"the prefix of chunk folder"`
CustomExt string `json:"custom_ext" type:"string"`
StoreHash bool `json:"store_hash" type:"bool" default:"true"`
NumListWorkers int `json:"num_list_workers" required:"true" type:"number" default:"5"`
Thumbnail bool `json:"thumbnail" required:"true" default:"false" help:"enable thumbnail which pre-generated under .thumbnails folder"`
ShowHidden bool `json:"show_hidden" default:"true" required:"false" help:"show hidden directories and files"`
}
type Chunk ¶
func (*Chunk) GetAddition ¶
func (d *Chunk) GetAddition() driver.Additional
func (*Chunk) GetDetails ¶
Click to show internal directories.
Click to hide internal directories.