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.
()
| 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. |
| 726 | func (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. |
no outgoing calls
no test coverage detected