#[non_exhaustive]pub enum OpKind {
ListRepos {
name_prefix: String,
},
ListRefs {
prefix: String,
},
ReadRef {
name: String,
},
UpdateRef(RefUpdate),
AdvanceRefs {
head: RefUpdate,
packmap: RefUpdate,
tickets: Vec<Hash>,
},
BeginUpload {
ref_name: String,
key: PackKey,
bytes: u64,
},
PackExists {
key: PackKey,
},
UploadPack {
key: PackKey,
declared_len: u64,
},
DownloadPack {
key: PackKey,
},
SetRepoVisibility {
visibility: Visibility,
},
IssueObjectUrl {
target: UrlTarget,
ttl_seconds: u32,
},
HttpGet {
ref_name: Option<String>,
},
}Expand description
What an operation does, with its decoded arguments.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ListRepos
List repository names in the namespace selected by the request.
ListRefs
List refs under prefix.
ReadRef
Read one ref.
UpdateRef(RefUpdate)
Conditionally write one ref.
AdvanceRefs
Advance a branch head and its packmap together.
Fields
BeginUpload
Open an upload ticket for a target ref.
Fields
PackExists
Check whether a pack is present.
UploadPack
Upload a pack.
DownloadPack
Download a pack.
SetRepoVisibility
Set the repository’s visibility (envelope mode only; a
signed_statement request never becomes an Operation).
Fields
visibility: VisibilityThe visibility to store.
IssueObjectUrl
Mint a signed URL token for an object or ref path (SPEC-WRITE-GRANTS §9.4). The server does not resolve the target.
Fields
HttpGet
An anonymous HTTP object read (SPEC-HTTP-OBJECTS §7): by id, or by
ref path when ref_name is set. The hook schema has no object-id
field, so the id is not part of the operation.