Documentation
¶
Index ¶
- type Addition
- type Chunker
- func (d *Chunker) Config() driver.Config
- func (d *Chunker) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Chunker) Drop(ctx context.Context) error
- func (d *Chunker) Get(ctx context.Context, pathStr string) (model.Obj, error)
- func (d *Chunker) GetAddition() driver.Additional
- func (d *Chunker) Init(ctx context.Context) error
- func (d *Chunker) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Chunker) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *Chunker) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *Chunker) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *Chunker) Put(ctx context.Context, dstDir model.Obj, streamer model.FileStreamer, ...) error
- func (d *Chunker) Remove(ctx context.Context, obj model.Obj) error
- func (d *Chunker) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
RemotePath string `` /* 139-byte string literal not displayed */
RemotePaths string `` /* 165-byte string literal not displayed */
StoreChunksInPrimary bool `` /* 142-byte string literal not displayed */
ChunkSize int64 `json:"chunk_size" type:"number" required:"true" default:"2147483648" help:"Files larger than this will be split into chunks"`
NameFormat string `` /* 166-byte string literal not displayed */
StartFrom int `json:"start_from" type:"number" required:"true" default:"1" help:"Chunk number base, usually 0 or 1"`
MetaFormat string `` /* 156-byte string literal not displayed */
HashType string `` /* 133-byte string literal not displayed */
}
type Chunker ¶
func (*Chunker) GetAddition ¶
func (d *Chunker) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.