# Packages
Package fspath is similar to the standard path package but provides functions that are more useful for path manipulation in the presence of symbolic links.
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Args configures the list of arguments passed to the guest module.
CopyFile creates a copy of oldName at newName in the given file system.
CopyFileRange is a generic implementation of the File.CopyFileRange method using Preadv/Pwritev.
Create creates and opens a file on a file system.
No description provided by the author
DirFS constructs a FileSystem instance backed by a directory location on the local file system.
Environ configures the list of environment variables exposed to the guest module.
FS constructs a fs.FS backed by a FileSystem instance.
No description provided by the author
Link creates a hard link between the old and new names passed as arguments.
No description provided by the author
No description provided by the author
Lstat returns information about a file on a file system.
MaxOpenDirs configures the maximum number of directories that can be opened by the guest module.
MaxOpenFiles configures the maximum number of files that can be opened by the guest module.
Mkdir creates a directory on a file system.
MkdirAll creates all directories to form the given path name on a file system.
Mount configures a mount point to expose a file system to the guest module, with each mount point exposed as a preopen directory.
Network configures the network namespace exposed to the guest module.
New creates a new System instance, applying the list of options passed as arguments.
No description provided by the author
No description provided by the author
Open opens a file with the given name on a file system.
OpenDir opens a directory with the given name on the file system.
OpenRoot opens the root directory of a file system.
Rand configures the random number generator exposed to the guest module.
ReadDirent reads a directory entry from buf, returning the number of bytes consumed and the values extracted from the buffer.
ReadFile reads the content of a file on a file system.
Readlink reads the target of a symbolic link located at the given path name on a file system.
Rename changes the name referencing a file, symbolic link, or directory on a file system.
ResolvePath is the path resolution algorithm which guarantees sandboxing of path access in a root FS.
Resolver configures the name resolver used when the guest attempts to lookup addresses.
Rmdir removes an empty directory from a file system.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Stat returns information about a file on a file system.
Symlink creates a symbolic link to a file system location.
ThrottleFS wraps the file system passed as argument to apply the rate limits r and w on read and write operations.
Time configures the function used by the guest module to get the current time.
No description provided by the author
Unlink removes a file or symbolic link from a file system.
WriteDirent writes a directory entry to buf.
WriteFile writes a file on a file system.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
maxFollowSymlink is the hardcoded limit of symbolic links that may be followed when resolving paths.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Structs
FileInfo is a type similar to fs.FileInfo or syscall.Stat_t on unix systems.
No description provided by the author
No description provided by the author
System is an implementation of the wasi.System interface which sandboxes all interactions of the guest module with the world.
# Interfaces
File is an interface representing files opened from a file system.
FileSystem is the interface representing file systems.
No description provided by the author
No description provided by the author
ServiceResolver is an interface used to implement service name resolution on System instances.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
LookupFlags is a bitset of flags that can be passed to methods of File and FileSystem values to customize the behavior of file name lookups.
OpenFlags is a bitset of flags that can be passed to the Open method of File and FileSystem values.
Option represents configuration options that can be set when instantiating a System.
No description provided by the author
RenameFlags is a bitset of flags passed to the File.Rename method to configure the behavior of the rename operation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author