MCPcopy
hub / github.com/containerd/containerd / uniquePart

Function uniquePart

core/unpack/unpacker.go:758–764  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

756}
757
758func uniquePart() string {
759 t := time.Now()
760 var b [3]byte
761 // Ignore read failures, just decreases uniqueness
762 rand.Read(b[:])
763 return fmt.Sprintf("%d-%s", t.Nanosecond(), base64.URLEncoding.EncodeToString(b[:]))
764}
765
766// TODO: this is a temporary workaround until #13053 lands.
767func bindToOverlay(mounts []mount.Mount) []mount.Mount {

Callers 1

unpackMethod · 0.70

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…