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