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

Method list_attestations

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

Source from the content-addressed store, hash-verified

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

Callers 1

agent_attestFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected