Skip to main content

Module v0

Module v0 

Source
Expand description

The v0 HTTP protocol shapes.

Every v0 request and response type is available from this module. Common types are also re-exported from the crate root. The submodules group types by API area:

  • 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.

Structs§

AdvanceRetentionRequest
Selects retention-floor advancement. This request has no options yet.
AdvanceRetentionResponse
Result of advancing the retention floor.
ApiError
HTTP error body used by LoonFS APIs.
AttributesProjection
Attributes returned for one inode.
BeginDownloadByInodeRequest
Empty request for an inode-addressed download.
BeginDownloadByInodeResponse
A short-lived capability to read one inode revision.
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.
Checkpoint
One checkpoint resource, reported from what its durable record carries.
CommitRequest
A request to commit one or more filesystem operations.
CommitResponse
Result of one commit.
CommittedChange
One committed change in namespace order.
CompleteMultipartUploadRequest
Information required to complete a direct_multipart upload.
CompletedUploadPart
One uploaded part, as the client observed the provider accept it.
ContentToken
Proof that a specific content_ref may be used in a later commit.
CreateCheckpointRequest
Request to create a durable checkpoint pin.
CreateNamespaceRequest
Request to create a namespace.
CreateSnapshotRequest
Request to create a snapshot.
DeleteNamespaceResponse
Result of deleting a namespace.
DeletedObjectCounts
Objects deleted by one GC pass, grouped by object family. Every field is present, including zero counts.
DirectoryBinding
A directory entry’s parent and name.
ErrorDetails
Optional machine-readable details for an ApiError.
ExtendSnapshotRequest
Request to extend a read snapshot.
FileBytes
File bytes plus the metadata entry they came from.
FileRevision
One immutable file revision.
FlushWalResponse
Result of one WAL flush: what the metadata root references afterward.
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).
GrepIndex
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.
ListChangesResponse
Change-feed response after a cursor.
ListCheckpointsResponse
One page of active checkpoint records.
ListFileRevisionsResponse
Response for listing file revisions.
ListInodeChildrenResponse
One directory listing addressed by parent inode, and the namespace head it was answered at.
ListPathEntriesResponse
One directory listing and the namespace head it was answered at.
ListSnapshotsResponse
One page of live read snapshots.
ListTrashResponse
One trash listing page: the namespace’s recoverable deletions.
MaintenanceStepRequest
One explicit maintenance step: the actions it selects, and nothing more.
MaintenanceStepResponse
Result of one explicit maintenance step.
MetadataMaintenanceRequest
Overrides for the metadata-upkeep action.
MetadataMaintenanceResponse
What one metadata-upkeep action did, part by part.
Namespace
Current state for one namespace.
NamespaceDiagnostics
Namespace state and storage details used by maintenance.
PathEntry
Metadata for one path returned by stat and directory-listing operations.
ReleaseCheckpointResponse
Result of releasing a checkpoint pin.
ReleaseSnapshotResponse
Result of releasing a read snapshot.
ReleasedCheckpointCounts
Checkpoint records released by one GC pass, grouped by reason.
RetainedCandidates
Candidates inspected but not deleted by one GC pass.
SignUploadPartsRequest
Request for part-upload capabilities on an open multipart session.
SignUploadPartsResponse
Response carrying one capability per requested part.
SignedUploadPart
One authorized part upload.
SnapshotSummary
A live snapshot.
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. An option this build does not know is rejected rather than ignored, so a caller never believes it selected something.
StoreProbeResponse
What one store contract probe observed, check by check.
TrashEntry
One deletion that can still be restored.
UploadContentClaim
Size and checksum reported by the client for a complete payload.
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.
UploadSession
Current view of one upload session.

Enums§

BeginUploadRequest
Request to start an upload session, tagged by transport mode.
BeginUploadResponse
Response to starting an upload session, tagged by transport mode.
CheckpointOwnerSummary
The owner of a checkpoint record.
CompleteUploadRequest
Request to complete an upload session.
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 filesystem operation.
FlushWalOutcome
How one WAL flush satisfied its goal.
GrepIndexLifecycle
Where a namespace’s grep index is in its lifecycle.
ObjectTransferAccess
Client-facing direct transfer capability.
PathEntryKind
Kind-specific metadata for a path entry.
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.