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

Method Save

mod/tigron/test/interfaces.go:43–43  ·  view source on GitHub ↗

Save will store the content in the file, ensuring parent dir exists, and return the path. Asserts on failure.

(data string, key ...string)

Source from the content-addressed store, hash-verified

41 // Save will store the content in the file, ensuring parent dir exists, and return the path.
42 // Asserts on failure.
43 Save(data string, key ...string) string
44 // SaveToWriter allows to write to the file as a writer.
45 // This is particularly useful for encoding functions like pem.Encode.
46 SaveToWriter(writer func(file io.Writer) error, key ...string) string

Callers 15

TestContainerInspectUserFunction · 0.65
TestCreateFromOCIArchiveFunction · 0.65
TestRunEnvFileFunction · 0.65
TestRunWithLogBinaryFunction · 0.65
TestRunFromOCIArchiveFunction · 0.65
TestRunVerifyCosignFunction · 0.65
TestImagesFilterFunction · 0.65

Implementers 1

tempmod/tigron/test/data.go

Calls

no outgoing calls

Tested by 15

TestContainerInspectUserFunction · 0.52
TestCreateFromOCIArchiveFunction · 0.52
TestRunEnvFileFunction · 0.52
TestRunWithLogBinaryFunction · 0.52
TestRunFromOCIArchiveFunction · 0.52
TestRunVerifyCosignFunction · 0.52
TestImagesFilterFunction · 0.52