errorfs

package
v0.0.0-...-a9a7f05 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FooContents = "xxxx"

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS interface {
	fuseutil.FileSystem

	// Cause the file system to return the supplied error for all future
	// operations matching the supplied type.
	SetError(t reflect.Type, err syscall.Errno)
}

A file system whose sole contents are a file named "foo" containing the string defined by FooContents.

The file system can be configured to returned canned errors for particular operations using the method SetError.

func New

func New() (fs FS, err error)

Jump to

Keyboard shortcuts

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