Skip to main content

Module v0

Module v0 

Source
Expand description

The v0 HTTP protocol shapes.

Every request/response body served by the v0 HTTP API lives under this module, re-exported flat so loonfs_api::v0::X is the canonical path for any v0 shape. The submodules group the surface by plane:

  • operations — namespace lifecycle, path-oriented filesystem operations, file revisions, maintenance, and the ApiError body.
  • reads — authoritative read results (stat/list entries, file bytes).
  • commits — commit results and the change feed.
  • search — content search and grep-index administration.
  • uploads — upload sessions and direct-put access.
  • downloads — direct-get download grants.

The crate root re-exports the common surface for convenience; see the crate docs for the rule.

Structs§

AbortUploadResponse
Response after aborting an upload session.
AdvanceRetentionResponse
Result of advancing the retention floor.
ApiError
HTTP error body used by LoonFS APIs.
AuthoritativeFileBytes
File bytes plus the metadata entry they came from.
AuthoritativePathEntry
Authoritative metadata for one visible path.
BeginDownloadRequest
What a client names when it asks to read a file directly.
BeginDownloadResponse
A short-lived capability to read one file’s content object, plus everything the reader needs to check what arrives.
BeginUploadResponse
Response for starting an upload session.
ChangesResponse
Change-feed response after a cursor.
CheckpointSummary
One active checkpoint record, reported from what the record carries.
CommitRequest
One commit: an idempotency key, an optional annotation, and an ordered list of path operations that commit together (API spec, section 5.1).
CommitResponse
Result of one commit.
CommittedChange
One committed change in namespace order.
CompleteUploadResponse
Response after an upload session is completed.
CompletedUploadPart
One uploaded part, as the client observed the provider accept it.
CreateCheckpointRequest
Request to create a durable checkpoint pin.
CreateCheckpointResponse
Result of creating a checkpoint.
CreateNamespaceRequest
Request to create a namespace.
DeleteNamespaceResponse
Result of deleting a namespace.
DirectMultipartContentClaim
What a direct_multipart client says about the object it finished writing, supplied at completion rather than at begin.
DirectMultipartUpload
Direct multipart upload details: the geometry a client cuts its payload into parts with, and nothing else.
DirectMultipartUploadOptions
What a direct_multipart client asks for when it opens a session.
DirectPutContentClaim
What a direct_put client promises about bytes it has not written yet.
DirectPutUpload
Presigned direct_put upload details. The raw object key is intentionally not public.
DisableGrepIndexResponse
Result of disabling the grep index on a namespace (admin plane).
EnableGrepIndexResponse
Result of enabling the grep index on a namespace (admin plane).
ErrorDetails
Structured, machine-readable context accompanying an ApiError.
FileRevision
One immutable file revision.
FlushWalResponse
Result of one WAL flush: how the metadata root covers the head.
ForkNamespaceRequest
Request to fork a namespace.
GcRequest
Optional overrides for one garbage-collection pass. Absent fields use the server’s conservative defaults.
GcResponse
Result of one mark-and-sweep garbage-collection pass.
GrepGcRequest
One explicit grep-index garbage-collection pass (admin plane).
GrepGcResponse
Result of one explicit grep-index garbage-collection pass (admin plane).
GrepIndexStatusResponse
The namespace’s grep-index lifecycle and its cheap bookkeeping (admin plane).
GrepMatch
One line-oriented match.
GrepRequest
One content-search request.
GrepResponse
One content-search page.
ListCheckpointsResponse
Every active checkpoint record a namespace currently carries.
ListFileRevisionsResponse
Response for listing file revisions.
ListPathEntriesResponse
One directory listing and the namespace head it was answered at.
ListTrashResponse
One trash listing page: the namespace’s recoverable deletions.
MaintenanceStepRequest
Options for one explicit maintenance step. Absent fields use the server’s defaults; retention advance runs only when retention is true and garbage collection only when gc is present.
MaintenanceStepResponse
Result of one explicit maintenance step.
NamespaceStatusResponse
Status summary for one namespace.
NamespaceSummary
Short namespace identifier returned by namespace create/fork operations.
ReleaseCheckpointResponse
Result of releasing a checkpoint pin.
RetainedCandidates
Why a pass kept what it kept: retained_candidates split by the decision that spared each candidate.
SignUploadPartsRequest
Request for part-upload capabilities on an open multipart session.
SignUploadPartsResponse
Response carrying one capability per requested part.
SignedUploadPart
One authorized part upload.
StoreProbeCheckResult
One named contract check and what the store did with it.
StoreProbeRequest
Options for one store contract probe. Empty today; a body is still sent so later options do not change the shape of the request.
StoreProbeResponse
What one store contract probe observed, check by check.
TrashEntry
One recoverable deletion: an active subtree tombstone plus the identity of the binding it deleted, when the delete recorded one. Entries with no recorded name predate the enriched tombstone rows; their inode and sequence still form a complete undelete handle.
UploadContentResponse
Response after uploading bytes into a session.
UploadPartChecksumClaim
One part’s checksum, supplied by the client so the server can sign it into that part’s upload URL.
UploadStatusResponse
Response for reading one upload session.
ValidatedContentToken
Stateless proof that a LoonFS server already validated a content ref.

Enums§

BeginUploadRequest
Request for starting an upload session, tagged by the transport it asks for.
CheckpointOwnerSummary
Who a checkpoint record answers to, as the record durably records it.
CompleteUploadRequest
Request to complete an upload, tagged by which of its two shapes it is.
DeleteDirectoryBehavior
Directory delete behavior for path-oriented deletes.
DestinationBehavior
Destination-conflict behavior for path-oriented puts, moves, and copies.
FilesystemChange
One semantic filesystem change inside a commit.
FilesystemOperation
One path-oriented filesystem operation.
FlushWalOutcome
How one WAL flush satisfied its goal.
GrepIndexLifecycle
Where a namespace’s grep index is in its lifecycle.
MaintenanceStepKind
One sub-step of a maintenance step, for callers that want to run exactly one of them.
ObjectTransferAccess
Client-facing direct transfer capability.
ReorganizeStepOutcome
What the metadata-reorganization part of a maintenance step did.
RetainedReason
The reason one candidate was retained, as the sweep site knows it. Each variant is the field of RetainedCandidates it counts into, where the reason itself is described.
StoreProbeCheckOutcome
What one contract check concluded about the store.
UploadMode
Upload transport mode.
UploadSessionStatus
Observed state of an upload session.
WalFlushStepOutcome
What the WAL-flush part of a maintenance step did.