MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / publish_binding

Method publish_binding

atomic-repository/src/repository/binding_store.rs:162–170  ·  view source on GitHub ↗

Publish a signed binding (RFC §7.2 exit, §8.6, §12). Sequence: 1. validate the signed object (refuse before anything is written); 2. write the unreferenced binding commit whose tree holds only the Git-safe public blobs ([`binding_tree_entries`]); 3. refuse if the create-only ref exists with a different target; 4. store the binding immutably (a local durable fact, not a publication); 5. journal th

(
        &self,
        working_copy: WorkingCopyId,
        git: &GitRepository,
        binding: &GitStateBinding,
        summary: Option<&SignedAttestationSummary>,
    )

Source from the content-addressed store, hash-verified

160 /// signer's key; it is the only attestation-derived data allowed into
161 /// the Git tree.
162 pub fn publish_binding(
163 &self,
164 working_copy: WorkingCopyId,
165 git: &GitRepository,
166 binding: &GitStateBinding,
167 summary: Option<&SignedAttestationSummary>,
168 ) -> Result<BindingPublication, RepositoryError> {
169 self.publish_binding_inner(working_copy, git, binding, summary, None, None)
170 }
171
172 /// Publish a signed binding together with its optional complete
173 /// conflict-object pack (RFC §8.3, CB-8B).

Calls 1

publish_binding_innerMethod · 0.80