MCPcopy
hub / github.com/slimtoolkit/slim / uniqueTarFilePath

Function uniqueTarFilePath

pkg/app/master/command/registry/handler_push.go:112–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112func uniqueTarFilePath() (string, error) {
113 f, err := os.CreateTemp("", "saved-image-*.tar")
114 if err != nil {
115 return "", err
116 }
117
118 defer f.Close()
119 defer os.Remove(f.Name())
120 return f.Name(), nil
121}
122
123func saveDockerImage(
124 logger *log.Entry,

Callers 1

OnPushCommandFunction · 0.85

Calls 3

RemoveMethod · 0.80
CloseMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected