local

package
v0.0.0-...-c590095 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name = "Local"

Functions

func GetSnapshot

func GetSnapshot(videoPath string, frameNum int) (imgData *bytes.Buffer, err error)

Types

type Addition

type Addition struct {
	driver.RootPath
	Thumbnail  bool   `json:"thumbnail" required:"true" help:"enable thumbnail"`
	ShowHidden bool   `json:"show_hidden" default:"true" required:"false" help:"show hidden directories and files"`
	MkdirPerm  string `json:"mkdir_perm" default:"777"`
}

type Local

type Local struct {
	Addition
	// contains filtered or unexported fields
}

func New

func New() *Local
func init() {
	op.RegisterDriver(func() driver.Driver {
		return &Local{}
	})
}

func (*Local) Config

func (d *Local) Config() driver.Config

func (*Local) Copy

func (d *Local) Copy(ctx context.Context, srcObj, dstDir driver.AbstractDriverFile) error

func (*Local) Drop

func (d *Local) Drop(ctx context.Context) error

func (*Local) Get

func (d *Local) Get(ctx context.Context, path string) (driver.AbstractDriverFile, error)

func (*Local) GetAddition

func (d *Local) GetAddition() driver.Additional

func (*Local) Init

func (d *Local) Init(ctx context.Context) error

func (*Local) List

func (*Local) MakeDir

func (d *Local) MakeDir(ctx context.Context, parentDir driver.AbstractDriverFile, dirName string) error

func (*Local) Move

func (d *Local) Move(ctx context.Context, srcObj, dstDir driver.AbstractDriverFile) error

func (*Local) Put

func (*Local) Remove

func (d *Local) Remove(ctx context.Context, obj driver.AbstractDriverFile) error

func (*Local) Rename

func (d *Local) Rename(ctx context.Context, srcObj driver.AbstractDriverFile, newName string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL