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ยง
- Copy
Options - Options for copying a file path.
- Create
Directory Options - Options for creating a directory.
- Delete
Options - Options for deleting a path.
- Move
Options - Options for moving a path.
- PutFile
Options - Options for writing a file path.
- Restore
Revision Options - Options for restoring a file revision by path.
- Undelete
Options - Options for recovering a deleted file or subtree.