MCPcopy Create free account
hub / github.com/cloudflare/cfssl / getResultMap

Method getResultMap

api/client/client.go:282–294  ·  view source on GitHub ↗
(jsonData []byte, target string)

Source from the content-addressed store, hash-verified

280}
281
282func (srv *server) getResultMap(jsonData []byte, target string) (result map[string]interface{}, err error) {
283 url := srv.getURL(target)
284 response, err := srv.post(url, jsonData)
285 if err != nil {
286 return
287 }
288 result, ok := response.Result.(map[string]interface{})
289 if !ok {
290 err = errors.Wrap(errors.APIClientError, errors.ClientHTTPError, stderr.New("response is formatted improperly"))
291 return
292 }
293 return
294}
295
296// request performs the common logic for Sign and Info, performing the actual
297// request and returning the resultant certificate.

Callers 2

InfoMethod · 0.95
requestMethod · 0.95

Calls 4

getURLMethod · 0.95
postMethod · 0.95
WrapFunction · 0.92
NewMethod · 0.80

Tested by

no test coverage detected