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

Function uniquePart

pkg/imgutil/commit/commit.go:568–574  ·  view source on GitHub ↗

copied from github.com/containerd/containerd/rootfs/apply.go

()

Source from the content-addressed store, hash-verified

566
567// copied from github.com/containerd/containerd/rootfs/apply.go
568func uniquePart() string {
569 t := time.Now()
570 var b [3]byte
571 // Ignore read failures, just decreases uniqueness
572 rand.Read(b[:])
573 return fmt.Sprintf("%d-%s", t.Nanosecond(), base64.URLEncoding.EncodeToString(b[:]))
574}

Callers 1

applyDiffLayerFunction · 0.85

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…