Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultFS = gvfs.Default
DefaultFS is a vfs instance using underlying OS fs.
var ErrInjected = gvfs.ErrInjected
ErrInjected is an error injected for testing purposes.
var OpRead = gvfs.OpRead
OpRead describes read operations.
var OpSync = gvfs.OpSync
OpSync describes the fsync operation.
var OpWrite = gvfs.OpWrite
OpWrite describes write operations.
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 ReportLeakedFD ¶
ReportLeakedFD reports leaked file fds.
Types ¶
type IFS ¶
IFS is the vfs interface used by dragonboat.
var MemStrictFS IFS = gvfs.NewStrictMem()
MemStrictFS is a vfs instance using memfs.
type InjectIndex ¶
type InjectIndex = gvfs.InjectIndex
InjectIndex implements Injector.
func OnIndex ¶
func OnIndex(index int32, op Op) *InjectIndex
OnIndex creates and returns an injector instance that returns an ErrInjected on the (n+1)-th invocation of its MaybeError function.