Skip to content

Commit

Permalink
chore: fix function names
Browse files Browse the repository at this point in the history
Signed-off-by: availhang <[email protected]>
  • Loading branch information
availhang committed Mar 22, 2024
1 parent 4d15eb8 commit 0bf62be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion copy/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion manifest/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion signature/policy_eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0bf62be

Please sign in to comment.