(
&self,
request: pb::PrepareAttestationRequest,
)
| 1147 | |
| 1148 | impl Service { |
| 1149 | pub fn prepare_attestation( |
| 1150 | &self, |
| 1151 | request: pb::PrepareAttestationRequest, |
| 1152 | ) -> CliResult<pb::PrepareAttestationResponse> { |
| 1153 | self.call(move |backend| async move { |
| 1154 | match backend { |
| 1155 | Backend::Local(state) => services_agent::AttestationImpl { state } |
| 1156 | .prepare_attestation(Request::new(request)) |
| 1157 | .await |
| 1158 | .map(|response| response.into_inner()), |
| 1159 | Backend::Reactor(channel) => { |
| 1160 | let mut attestation = |
| 1161 | pb::attestation_service_client::AttestationServiceClient::new(channel); |
| 1162 | attestation |
| 1163 | .prepare_attestation(request) |
| 1164 | .await |
| 1165 | .map(|response| response.into_inner()) |
| 1166 | } |
| 1167 | } |
| 1168 | }) |
| 1169 | } |
| 1170 | |
| 1171 | pub fn record_attestation( |
| 1172 | &self, |
no test coverage detected