Documentation
¶
Index ¶
- Constants
- Variables
- 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) GetRoot(ctx context.Context) (model.Obj, 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
- func (d *Alias) ResolveLinkCacheMode(path string) driver.LinkCacheMode
- type BalancedObjs
- func (b BalancedObjs) CreateTime() time.Time
- func (b BalancedObjs) GetHash() utils.HashInfo
- func (b BalancedObjs) GetID() string
- func (b BalancedObjs) GetName() string
- func (b BalancedObjs) GetPath() string
- func (b BalancedObjs) GetSize() int64
- func (b BalancedObjs) IsDir() bool
- func (b BalancedObjs) ModTime() time.Time
- func (b BalancedObjs) Unwrap() model.Obj
Constants ¶
View Source
const ( DisabledWP = "disabled" FirstRWP = "first" DeterministicWP = "deterministic" DeterministicOrAllWP = "deterministic_or_all" AllRWP = "all" AllStrictWP = "all_strict" RandomBalancedRP = "random" BalancedByQuotaP = "quota" BalancedByQuotaStrictP = "quota_strict" )
Variables ¶
View Source
var ( ValidReadConflictPolicy = []string{FirstRWP, RandomBalancedRP, AllRWP} ValidWriteConflictPolicy = []string{DisabledWP, FirstRWP, DeterministicWP, DeterministicOrAllWP, AllRWP, AllStrictWP} ValidPutConflictPolicy = []string{DisabledWP, FirstRWP, DeterministicWP, DeterministicOrAllWP, AllRWP, AllStrictWP, RandomBalancedRP, BalancedByQuotaP, BalancedByQuotaStrictP} )
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
Paths string `json:"paths" required:"true" type:"text"`
ReadConflictPolicy string `json:"read_conflict_policy" type:"select" options:"first,random,all" default:"first"`
WriteConflictPolicy string `` /* 238-byte string literal not displayed */
PutConflictPolicy string `` /* 265-byte string literal not displayed */
FileConsistencyCheck bool `json:"file_consistency_check" 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"`
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
func (*Alias) ResolveLinkCacheMode ¶ added in v4.1.5
func (d *Alias) ResolveLinkCacheMode(path string) driver.LinkCacheMode
type BalancedObjs ¶ added in v4.1.9
func (BalancedObjs) CreateTime ¶ added in v4.1.9
func (b BalancedObjs) CreateTime() time.Time
func (BalancedObjs) GetHash ¶ added in v4.1.9
func (b BalancedObjs) GetHash() utils.HashInfo
func (BalancedObjs) GetID ¶ added in v4.1.9
func (b BalancedObjs) GetID() string
func (BalancedObjs) GetName ¶ added in v4.1.9
func (b BalancedObjs) GetName() string
func (BalancedObjs) GetPath ¶ added in v4.1.9
func (b BalancedObjs) GetPath() string
func (BalancedObjs) GetSize ¶ added in v4.1.9
func (b BalancedObjs) GetSize() int64
func (BalancedObjs) IsDir ¶ added in v4.1.9
func (b BalancedObjs) IsDir() bool
func (BalancedObjs) ModTime ¶ added in v4.1.9
func (b BalancedObjs) ModTime() time.Time
func (BalancedObjs) Unwrap ¶ added in v4.1.9
func (b BalancedObjs) Unwrap() model.Obj
Click to show internal directories.
Click to hide internal directories.