MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / jsonLoad

Function jsonLoad

cmd/utils.go:685–690  ·  view source on GitHub ↗

Load the json (typically from disk file).

(r io.ReadSeeker, data interface{})

Source from the content-addressed store, hash-verified

683
684// Load the json (typically from disk file).
685func jsonLoad(r io.ReadSeeker, data interface{}) error {
686 if _, err := r.Seek(0, io.SeekStart); err != nil {
687 return err
688 }
689 return json.NewDecoder(r).Decode(data)
690}
691
692// Save to disk file in json format.
693func jsonSave(f interface {

Callers 8

formatCacheGetVersionFunction · 0.85
formatMetaCacheV1Function · 0.85
migrateCacheFormatJSONFunction · 0.85
statCacheMethod · 0.85
saveMetadataMethod · 0.85
updateMetadataMethod · 0.85
NewMultipartUploadMethod · 0.85
SavePartMetadataMethod · 0.85

Calls 2

DecodeMethod · 0.80
SeekMethod · 0.45

Tested by

no test coverage detected