Skip to main content

Module options

Module options 

Source
Expand description

Per-operation option shapes shared by the runtime and client surfaces.

loonfs (embedded runtime) and loonfs-client (HTTP client) expose the same semantic filesystem operations, so the options that parameterize them are defined once here and re-exported by both under their existing names. Keeping one definition is what stops the two surfaces from drifting a field apart.

There is one type per operation, even where two of them currently hold the same fields: options follow the operation they parameterize, so a guard added to one is not silently offered on the others.

These are plain in-process argument structs, not wire shapes: nothing here serializes. The request bodies that do cross the wire live in crate::v0, and each surface resolves these options into one.

Structsยง

CopyOptions
Options for copying a file path.
CreateDirectoryOptions
Options for creating a directory.
DeleteOptions
Options for deleting a path.
MoveOptions
Options for moving a path.
PutFileOptions
Options for writing a file path.
RestoreRevisionOptions
Options for restoring a file revision by path.
UndeleteOptions
Options for recovering a deleted file or subtree.