MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / FindCode

Method FindCode

pkg/funclet/code/find.go:25–31  ·  view source on GitHub ↗

FindCode

(path, codeSha256 string)

Source from the content-addressed store, hash-verified

23
24// FindCode
25func (codeMgr *Manager) FindCode(path, codeSha256 string) bool {
26 folderName := filepath.Join(path, codeSha256)
27 if _, err := os.Stat(folderName); os.IsNotExist(err) {
28 return false
29 }
30 return true
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected