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

Method list_attestations

atomic-cli/src/service/mod.rs:1215–1235  ·  view source on GitHub ↗
(
        &self,
        request: pb::ListAttestationsRequest,
    )

Source from the content-addressed store, hash-verified

1213 }
1214
1215 pub fn list_attestations(
1216 &self,
1217 request: pb::ListAttestationsRequest,
1218 ) -> CliResult<pb::ListAttestationsResponse> {
1219 self.call(move |backend| async move {
1220 match backend {
1221 Backend::Local(state) => services_agent::AttestationImpl { state }
1222 .list_attestations(Request::new(request))
1223 .await
1224 .map(|response| response.into_inner()),
1225 Backend::Reactor(channel) => {
1226 let mut attestation =
1227 pb::attestation_service_client::AttestationServiceClient::new(channel);
1228 attestation
1229 .list_attestations(request)
1230 .await
1231 .map(|response| response.into_inner())
1232 }
1233 }
1234 })
1235 }
1236}
1237
1238// ---------------------------------------------------------------------------

Callers 1

agent_attestFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected