| 65 | } |
| 66 | |
| 67 | func (h *httpKeyInternalAPI) PerformClaimKeys( |
| 68 | ctx context.Context, |
| 69 | request *api.PerformClaimKeysRequest, |
| 70 | response *api.PerformClaimKeysResponse, |
| 71 | ) { |
| 72 | span, ctx := opentracing.StartSpanFromContext(ctx, "PerformClaimKeys") |
| 73 | defer span.Finish() |
| 74 | |
| 75 | apiURL := h.apiURL + PerformClaimKeysPath |
| 76 | err := httputil.PostJSON(ctx, span, h.httpClient, apiURL, request, response) |
| 77 | if err != nil { |
| 78 | response.Error = &api.KeyError{ |
| 79 | Err: err.Error(), |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | func (h *httpKeyInternalAPI) PerformDeleteKeys( |
| 85 | ctx context.Context, |