MCPcopy Create free account
hub / github.com/containers/image / logString

Method logString

storage/storage_dest.go:726–728  ·  view source on GitHub ↗

logString() prints a representation of trusted suitable identifying a layer in logs and errors. The string is already quoted to expose malicious input and does not need to be quoted again. Note that it does not include _all_ of the contents.

()

Source from the content-addressed store, hash-verified

724// The string is already quoted to expose malicious input and does not need to be quoted again.
725// Note that it does not include _all_ of the contents.
726func (trusted trustedLayerIdentityData) logString() string {
727 return fmt.Sprintf("%q/%q/%q", trusted.blobDigest, trusted.tocDigest, trusted.diffID)
728}
729
730// trustedLayerIdentityDataLocked returns a _consistent_ set of information for a layer with (layerIndex, blobDigest).
731// blobDigest is the (possibly-compressed) layer digest referenced in the manifest.

Callers 2

commitLayerMethod · 0.80
createNewLayerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected