Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + type Additional interface + type Config struct + Alert string + CheckStatus bool + DefaultRoot string + LocalSort bool + Name string + NeedMs bool + NoCache bool + NoOverwriteUpload bool + NoUpload bool + OnlyLocal bool + OnlyProxy bool + ProxyRangeOption bool + func (c Config) MustProxy() bool + type Copy interface + Copy func(ctx context.Context, srcObj, dstDir model.Obj) error + type CopyResult interface + Copy func(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + type Driver interface + type GetRooter interface + GetRoot func(ctx context.Context) (model.Obj, error) + type Getter interface + Get func(ctx context.Context, path string) (model.Obj, error) + type IRootId interface + GetRootId func() string + type IRootPath interface + GetRootPath func() string + type Info struct + Additional []Item + Common []Item + Config Config + type Item struct + Default string + Help string + Name string + Options string + Required bool + Type string + type Meta interface + Config func() Config + Drop func(ctx context.Context) error + GetAddition func() Additional + GetStorage func() *model.Storage + Init func(ctx context.Context) error + SetStorage func(model.Storage) + type Mkdir interface + MakeDir func(ctx context.Context, parentDir model.Obj, dirName string) error + type MkdirResult interface + MakeDir func(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) + type Move interface + Move func(ctx context.Context, srcObj, dstDir model.Obj) error + type MoveResult interface + Move func(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + type Other interface + Other func(ctx context.Context, args model.OtherArgs) (interface{}, error) + type Progress struct + Done int64 + Total int64 + func NewProgress(total int64, up UpdateProgress) *Progress + func (p *Progress) Write(b []byte) (n int, err error) + type Put interface + Put func(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error + type PutResult interface + Put func(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error) + type Reader interface + Link func(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + List func(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + type Remove interface + Remove func(ctx context.Context, obj model.Obj) error + type Rename interface + Rename func(ctx context.Context, srcObj model.Obj, newName string) error + type RenameResult interface + Rename func(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) + type RootID struct + RootFolderID string + func (r RootID) GetRootId() string + type RootPath struct + RootFolderPath string + func (r *RootPath) SetRootPath(path string) + func (r RootPath) GetRootPath() string + type Select string + type UpdateProgress func(percentage float64)