Documentation
¶
Index ¶
- func Clean(dir string) string
- func IsExist(err error) bool
- func IsNotExist(err error) bool
- func NewPebbleFS(fs IFS) pvfs.FS
- func TempDir() string
- type File
- type IFS
- type MemFS
- type PebbleFS
- func (p *PebbleFS) Create(name string) (pvfs.File, error)
- func (p *PebbleFS) Link(oldname, newname string) error
- func (p *PebbleFS) List(dir string) ([]string, error)
- func (p *PebbleFS) Lock(name string) (io.Closer, error)
- func (p *PebbleFS) MkdirAll(dir string, perm os.FileMode) error
- func (p *PebbleFS) Open(name string, opts ...pvfs.OpenOption) (pvfs.File, error)
- func (p *PebbleFS) OpenDir(name string) (pvfs.File, error)
- func (p *PebbleFS) PathBase(path string) string
- func (p *PebbleFS) PathDir(path string) string
- func (p *PebbleFS) PathJoin(elem ...string) string
- func (p *PebbleFS) Remove(name string) error
- func (p *PebbleFS) RemoveAll(name string) error
- func (p *PebbleFS) Rename(oldname, newname string) error
- func (p *PebbleFS) ReuseForWrite(oldname, newname string) (pvfs.File, error)
- func (p *PebbleFS) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExist ¶
IsExist returns a boolean value indicating whether the specified error is to indicate that a file or directory already exists.
func IsNotExist ¶
IsNotExist returns a boolean value indicating whether the specified error is to indicate that a file or directory does not exist.
func NewPebbleFS ¶
NewPebbleFS creates a new pebble/vfs.FS instance.
Types ¶
type IFS ¶
IFS is the vfs interface used by dragonboat.
var MemStrictFS IFS = gvfs.NewStrictMem()
MemStrictFS is a vfs instance using memfs.
Click to show internal directories.
Click to hide internal directories.