Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + func GetSnapshot(videoPath string, frameNum int) (imgData *bytes.Buffer, err error) + type Addition struct + MkdirPerm string + RecycleBinPath string + ShowHidden bool + ThumbCacheFolder string + ThumbConcurrency string + Thumbnail bool + type Local struct + func (d *Local) Config() driver.Config + func (d *Local) Copy(_ context.Context, srcObj, dstDir model.Obj) error + func (d *Local) Drop(ctx context.Context) error + func (d *Local) FileInfoToObj(f fs.FileInfo, reqPath string, fullPath string) model.Obj + func (d *Local) Get(ctx context.Context, path string) (model.Obj, error) + func (d *Local) GetAddition() driver.Additional + func (d *Local) GetMeta(ctx context.Context, path string) (model.Obj, error) + func (d *Local) Init(ctx context.Context) error + func (d *Local) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + func (d *Local) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + func (d *Local) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error + func (d *Local) Move(ctx context.Context, srcObj, dstDir model.Obj) error + func (d *Local) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error + func (d *Local) Remove(ctx context.Context, obj model.Obj) error + func (d *Local) Rename(ctx context.Context, srcObj model.Obj, newName string) error + type NopTokenBucket struct + func NewNopTokenBucket() NopTokenBucket + func (b NopTokenBucket) Do(_ context.Context, f func() error) error + func (b NopTokenBucket) Put() + func (b NopTokenBucket) Take() <-chan struct{} + type StaticTokenBucket struct + func NewStaticTokenBucket(size int) StaticTokenBucket + func NewStaticTokenBucketWithMigration(oldBucket TokenBucket, size int) StaticTokenBucket + func (b StaticTokenBucket) Do(ctx context.Context, f func() error) error + func (b StaticTokenBucket) Put() + func (b StaticTokenBucket) Take() <-chan struct{} + type TokenBucket interface + Do func(context.Context, func() error) error + Put func() + Take func() <-chan struct{}