local

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTooManyOpens = errors.New("too many opened files and failed to clean")

Functions

This section is empty.

Types

type LocalFS

type LocalFS struct {
	// contains filtered or unexported fields
}

func NewLocalFS

func NewLocalFS(root string, defaultPerm uint32, opensLimit, openTTL, readerTTL int, ider idgen.IIDGen) *LocalFS

func (*LocalFS) Close

func (fs *LocalFS) Close() error

func (*LocalFS) CloseFDs

func (fs *LocalFS) CloseFDs(filePaths map[string]bool) error

func (*LocalFS) CloseReader

func (fs *LocalFS) CloseReader(id string) error

func (*LocalFS) Create

func (fs *LocalFS) Create(path string) error

func (*LocalFS) GetFileReader

func (fs *LocalFS) GetFileReader(path string) (fs.ReadCloseSeeker, uint64, error)

readers are not tracked by opens

func (*LocalFS) ListDir

func (fs *LocalFS) ListDir(path string) ([]os.FileInfo, error)

func (*LocalFS) MkdirAll

func (fs *LocalFS) MkdirAll(path string) error

func (*LocalFS) ReadAt

func (fs *LocalFS) ReadAt(path string, b []byte, off int64) (int, error)

func (*LocalFS) Remove

func (fs *LocalFS) Remove(entryPath string) error

func (*LocalFS) Rename

func (fs *LocalFS) Rename(oldpath, newpath string) error

func (*LocalFS) Root

func (fs *LocalFS) Root() string

func (*LocalFS) Stat

func (fs *LocalFS) Stat(path string) (os.FileInfo, error)

func (*LocalFS) Sync

func (fs *LocalFS) Sync() error

func (*LocalFS) WriteAt

func (fs *LocalFS) WriteAt(path string, b []byte, off int64) (int, error)

Jump to

Keyboard shortcuts

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