MCPcopy Create free account
hub / github.com/containers/common / tmpdir

Function tmpdir

libimage/runtime.go:25–32  ·  view source on GitHub ↗

tmpdir returns a path to a temporary directory.

()

Source from the content-addressed store, hash-verified

23
24// tmpdir returns a path to a temporary directory.
25func tmpdir() string {
26 tmpdir := os.Getenv("TMPDIR")
27 if tmpdir == "" {
28 tmpdir = "/var/tmp"
29 }
30
31 return tmpdir
32}
33
34// RuntimeOptions allow for creating a customized Runtime.
35type RuntimeOptions struct {

Callers 2

testNewRuntimeFunction · 0.85
RuntimeFromStoreFunction · 0.85

Calls

no outgoing calls

Tested by 1

testNewRuntimeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…