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

Method session

atomic-repository/src/repository/provenance_gate.rs:181–194  ·  view source on GitHub ↗

The session this blocker applies to, when known.

(&self)

Source from the content-addressed store, hash-verified

179
180 /// The session this blocker applies to, when known.
181 pub fn session(&self) -> Option<&str> {
182 match self {
183 Self::MissingSessionEnvelope { .. }
184 | Self::TamperedSessionEnvelope { .. }
185 | Self::UnexplainedGitCommit { .. } => None,
186 Self::MissingProvenanceRoot { session, .. }
187 | Self::MissingSessionLedger { session, .. }
188 | Self::SessionIncomplete { session, .. }
189 | Self::MissingAttestation { session, .. }
190 | Self::AttestationNotVerifying { session, .. }
191 | Self::AttestationUnverifiable { session, .. }
192 | Self::AttestationSignerUntrusted { session, .. } => Some(session),
193 }
194 }
195}
196
197impl std::fmt::Display for GateBlocker {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected