Expand description
Shared protocol/auth transport types. Live authorization scope rules are owned by weft-server/src/access/scope.rs.
Structs§
- Auth
Token - Capabilities
- Set of protocol capabilities.
- Capability
Set - A set of capabilities that have been negotiated.
- Completed
Provider Pack - A completely covered and validated provider pack ready for atomic install.
- Create
Hosted Grant - Create
Hosted Repository - Create
Namespace - Delete
Hosted Grant - Delete
Hosted Repository - Delete
Namespace - Delta
Data - Delta-encoded data.
- Error
- GitPack
Chunk State - Growing
Pack Chunk Reader - Harness
Identity - Have
Objects - Hosted
Grant Created - Hosted
Grant Deleted - Hosted
Grant Info - Hosted
Grant Updated - Hosted
Grants List - Hosted
Namespace Info - Hosted
Repository Info - List
Hosted Grants - List
Hosted Namespaces - List
Hosted Repositories - List
Refs - Namespace
Created - Namespace
Deleted - Namespace
Updated - Namespaces
List - Native
Pack Bundle - Native
Pack File Bundle - Native
Pack Streaming Writer - Object
Availability Plan - Object
Data - Object
Info - Object
Request - Pack
Chunk Spool - Pack
Chunk State - Pack
File Chunk Reader - Planned
Object - Progress
Checkpoint - Provider
Pack Bundle - Provider
Pack Extent - Provider
Pack Index Entry - Provider
Pack Manifest - Provider
Pack Spool - A pre-sized provider pack spool that owns all partial transfer state.
- Provider
Pack Writer - A bounded-memory positional writer for one validated provider pack plan.
- Pull
Complete - Push
Complete - RefEntry
- RefFilter
- RefUpdated
- Refs
List - Remote
Cursor Failure - Remote
Duration - Remote
Timestamp - Repositories
List - Repository
Created - Repository
Deleted - Repository
Transfer Plan - Repository
Updated - Request
Delta - Request a delta-encoded object.
- Reused
Native Pack Stats - Send
Objects - Session
Diff Summary - Session
Report Envelope - State
Closure Options - State
Closure Transfer Objects - Status
- Transcript
Attachment Ref - Transfer
Partitions - Transfer
Plan Stats - Update
Hosted Grant - Update
Hosted Repository - Update
Namespace - Update
Ref - Usage
Totals - Want
Objects - Worktree
Change Baseline
Enums§
- Error
Code - GitLane
Transfer Intent - Head
Info - Object
Id - Object
Type - Object
Type Bucket - Protocol
Error - Error type for protocol operations.
- Remote
Cursor Reason - Remote
Failure Code - Stable outcome vocabulary for a failed hosted call. This mirrors the governed API contract without depending on generated protobuf types.
- Remote
Failure Detail - Machine-readable hosted failure details retained across the transport seam. Unknown details stay lossless so a newer server does not collapse them to prose when talking to an older client.
- Status
Code
Constants§
- CAPABILITY_
CHUNKED_ TRANSFER - CAPABILITY_
PACK_ TRANSFER - CAPABILITY_
PARTIAL_ FETCH - CAPABILITY_
RESUMABLE_ TRANSFER - DEFAULT_
PORT - Default port for Heddle protocol.
- MAX_
MESSAGE_ SIZE - Maximum message size (64 MB).
- MAX_
PULL_ FRAME_ MESSAGE_ SIZE - Inbound protobuf-frame decode limit for the pull stream.
- MAX_
RECEIVED_ GIT_ PACK_ SIZE - Maximum hosted Git pack accepted by the Git-lane transfer primitive.
- MAX_
RECEIVED_ PACK_ INDEX_ SIZE - Maximum hosted native-pack index accepted by the receive primitive.
- MAX_
RECEIVED_ PACK_ SIZE - Maximum hosted native-pack body accepted by the receive primitive.
- MAX_
RECEIVED_ REDACTIONS_ BLOB_ SIZE - Maximum redaction sidecar blob accepted from the pull stream, per blob.
- MAX_
RECEIVED_ STATE_ VISIBILITY_ BLOB_ SIZE - Maximum state-visibility sidecar blob accepted from the pull stream, per state.
- PROTOCOL_
VERSION - Protocol version.
Functions§
- assemble_
provider_ pack - Assemble and verify one virtual native pack from provider extent bodies.
- build_
native_ pack - check_
received_ transfer_ blob_ size - Reject a received per-object transfer sidecar blob whose length exceeds
max_bytes, before it is handed to the repository accept path. - chunk_
bounds - chunk_
count - chunk_
offset - enumerate_
state_ closure - enumerate_
state_ closure_ plan - enumerate_
state_ closure_ plan_ with_ options - enumerate_
state_ closure_ transfer_ from_ boundaries - Enumerate a transfer delta while treating
boundary_statesas complete server-held roots. UnlikeStateClosureOptions::exclude_states, this does not expand each boundary’s tree/history to build a hash exclusion set: the walk stops as soon as it reaches the boundary state. Objects reused by the new tip may still be advertised, and the receiver’s have-set filters them. This keeps incremental push planning proportional to the new history. - enumerate_
state_ closure_ transfer_ with_ options - enumerate_
state_ closure_ with_ options - has_
object - install_
received_ pack - is_
ancestor - is_
native_ packable_ object_ type - load_
object_ data - load_
requested_ object - missing_
blobs_ in_ tree - native_
pack_ excluded_ object_ types - next_
pack_ chunk - plan_
object_ availability - receive_
pack_ chunk - reuse_
native_ pack_ encoded_ subset_ in - Build a hosted transport pack by reusing non-delta encoded entries from an
authoritative local pack.
Ok(None)means the caller must use the normal object-loading writer. - store_
received_ object