MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / writeJSONCache

Function writeJSONCache

internal/updatepolicy/updatepolicy.go:680–690  ·  view source on GitHub ↗
(name string, payload any)

Source from the content-addressed store, hash-verified

678}
679
680func writeJSONCache(name string, payload any) error {
681 path, err := cachePath(name)
682 if err != nil {
683 return err
684 }
685 data, err := json.Marshal(payload)
686 if err != nil {
687 return err
688 }
689 return os.WriteFile(path, data, 0o644)
690}
691
692// -------- Networking --------
693

Callers 3

writeManifestCacheFunction · 0.85
writeMinVersionCacheFunction · 0.85
writeChecksumCacheFunction · 0.85

Calls 2

cachePathFunction · 0.70
WriteFileMethod · 0.65

Tested by

no test coverage detected