sync

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem struct {
	sync.Mutex

	Delegate billy.Filesystem
}

Filesystem implements a billy.Filesystem, but adds a mutex around all operations. The mutex around operations. The in-memory implementation is unsafe for concurrent use, so this wrapper makes it easy to synchronize

func (*Filesystem) Chroot

func (f *Filesystem) Chroot(path string) (billy.Filesystem, error)

Chroot description.

func (*Filesystem) Create

func (f *Filesystem) Create(filename string) (billy.File, error)

Create description.

func (*Filesystem) Join

func (f *Filesystem) Join(elem ...string) string

Join description.

func (*Filesystem) Lstat

func (f *Filesystem) Lstat(filename string) (os.FileInfo, error)

Lstat description.

func (*Filesystem) MkdirAll

func (f *Filesystem) MkdirAll(filename string, perm os.FileMode) error

MkdirAll description.

func (*Filesystem) Open

func (f *Filesystem) Open(filename string) (billy.File, error)

Open description.

func (*Filesystem) OpenFile

func (f *Filesystem) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)

OpenFile description.

func (*Filesystem) ReadDir

func (f *Filesystem) ReadDir(path string) ([]os.FileInfo, error)

ReadDir description.

func (f *Filesystem) Readlink(link string) (string, error)

Readlink description.

func (*Filesystem) Remove

func (f *Filesystem) Remove(filename string) error

Remove description.

func (*Filesystem) Rename

func (f *Filesystem) Rename(oldpath, newpath string) error

Rename description.

func (*Filesystem) Root

func (f *Filesystem) Root() string

Root description.

func (*Filesystem) Stat

func (f *Filesystem) Stat(filename string) (os.FileInfo, error)

Stat description.

func (f *Filesystem) Symlink(target, link string) error

Symlink description.

func (*Filesystem) TempFile

func (f *Filesystem) TempFile(dir, prefix string) (billy.File, error)

TempFile description.

Jump to

Keyboard shortcuts

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