chore: rename SignIndexAttestations to just Sign

This commit is contained in:
mrjoelkamp
2024-04-30 15:55:21 -05:00
parent 6b8c5b56bc
commit 34fcb0ca6d
3 changed files with 4 additions and 4 deletions

View File

@@ -42,9 +42,9 @@ library to create, verify, and evaluate policy for attestations on container ima
1. sign attestations
```go
signedImageIndex, err := attest.SignIndexAttestations(ctx, att, signer, opts)
signedImageIndex, err := attest.Sign(ctx, att, signer, opts)
```
`attest.SignedIndexAttestations()` iterates over all attestation manifests in the image index and signs all intoto statements (optionally generates a VSA), returning a mutated ImageIndex with all intoto statements signed as attestations.
`attest.Sign()` iterates over attestation manifests in the image index and signs all intoto statements (optionally generates a VSA), returning a mutated ImageIndex with all intoto statements signed as attestations.
1. save output (optional)
* push to oci registry