Documentation ¶
Index ¶
- func GetSnapshot(videoPath string, frameNum int) (imgData *bytes.Buffer, err error)
- type Addition
- type Local
- func (d *Local) Config() driver.Config
- func (d *Local) Copy(ctx 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addition ¶
type Addition struct { driver.RootPath Thumbnail bool `json:"thumbnail" required:"true" help:"enable thumbnail"` ThumbCacheFolder string `json:"thumb_cache_folder"` ShowHidden bool `json:"show_hidden" default:"true" required:"false" help:"show hidden directories and files"` MkdirPerm string `json:"mkdir_perm" default:"777"` RecycleBinPath string `` /* 137-byte string literal not displayed */ }
type Local ¶
func (*Local) FileInfoToObj ¶
func (*Local) GetAddition ¶
func (d *Local) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.