MCPcopy Create free account
hub / github.com/containerd/nerdctl / Path

Function Path

pkg/logging/jsonfile/jsonfile.go:41–44  ·  view source on GitHub ↗
(dataStore, ns, id string)

Source from the content-addressed store, hash-verified

39}
40
41func Path(dataStore, ns, id string) string {
42 // the file name corresponds to Docker
43 return filepath.Join(dataStore, "containers", ns, id, id+"-json.log")
44}
45
46// SyncEncoder writes individual json-file log entries to a writer. Its Encode
47// method is safe for concurrent use, so it can be shared between the goroutines

Callers 3

InitMethod · 0.92
PreProcessMethod · 0.92
viewLogsJSONFileFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…