diff --git a/copy/compression.go b/copy/compression.go index 1706f7116..89c3440be 100644 --- a/copy/compression.go +++ b/copy/compression.go @@ -287,7 +287,7 @@ func (d *bpCompressionStepData) updateCompressionEdits(operation *types.LayerCom maps.Copy(*annotations, d.uploadedAnnotations) } -// recordValidatedBlobData updates b.blobInfoCache with data about the created uploadedInfo (as returned by PutBlob) +// recordValidatedDigestData updates b.blobInfoCache with data about the created uploadedInfo (as returned by PutBlob) // and the original srcInfo (which the caller guarantees has been validated). // This must ONLY be called if all data has been validated by OUR code, and is not coming from third parties. func (d *bpCompressionStepData) recordValidatedDigestData(c *copier, uploadedInfo types.BlobInfo, srcInfo types.BlobInfo, diff --git a/manifest/oci.go b/manifest/oci.go index 8e5a0d5c8..51943ed1b 100644 --- a/manifest/oci.go +++ b/manifest/oci.go @@ -179,7 +179,7 @@ func getEncryptedMediaType(mediatype string) (string, error) { return "", fmt.Errorf("unsupported mediaType to encrypt: %v", mediatype) } -// getEncryptedMediaType will return the mediatype to its encrypted counterpart and return +// getDecryptedMediaType will return the mediatype to its encrypted counterpart and return // an error if the mediatype does not support decryption func getDecryptedMediaType(mediatype string) (string, error) { res, ok := strings.CutSuffix(mediatype, "+encrypted") diff --git a/signature/policy_eval.go b/signature/policy_eval.go index 4f8d0da38..2df77ec81 100644 --- a/signature/policy_eval.go +++ b/signature/policy_eval.go @@ -94,7 +94,7 @@ const ( pcDestroyed policyContextState = "Destroyed" ) -// changeContextState changes pc.state, or fails if the state is unexpected +// changeState changes pc.state, or fails if the state is unexpected func (pc *PolicyContext) changeState(expected, new policyContextState) error { if pc.state != expected { return fmt.Errorf(`Invalid PolicyContext state, expected "%s", found "%s"`, expected, pc.state)