The session this blocker applies to, when known.
(&self)
| 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 | |
| 197 | impl std::fmt::Display for GateBlocker { |
nothing calls this directly
no outgoing calls
no test coverage detected