MCPcopy
hub / github.com/smallstep/cli / readJSON

Function readJSON

utils/cautils/bootstrap.go:343–346  ·  view source on GitHub ↗
(r io.ReadCloser, v interface{})

Source from the content-addressed store, hash-verified

341}
342
343func readJSON(r io.ReadCloser, v interface{}) error {
344 defer r.Close()
345 return json.NewDecoder(r).Decode(v)
346}
347
348func readError(r io.ReadCloser) error {
349 defer r.Close()

Callers 1

BootstrapTeamAuthorityFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…