imageState holds the state of images used in acceptance tests keyed by the short image name, a name without the registry or the digest, e.g. "acceptance/hello-world". string values hold the concrete references, e.g. "registry:port/acceptance/sha256-hash.att" and the Signature values hold more inform
| 92 | // "registry:port/acceptance/sha256-hash.att" and the Signature values hold more |
| 93 | // information about the signature of the image/data itself. |
| 94 | type imageState struct { |
| 95 | // Legacy tag-based artifacts (e.g., sha256-<hash>.sig, sha256-<hash>.att) |
| 96 | AttestationSignatures map[string]Signature |
| 97 | Attestations map[string]string |
| 98 | Images map[string]string |
| 99 | ImageSignatures map[string]Signature |
| 100 | Signatures map[string]string |
| 101 | // OCI Referrers API artifacts (attached via manifest subject field) |
| 102 | ReferrerAttestationSignatures map[string]Signature |
| 103 | ReferrerAttestations map[string]string |
| 104 | ReferrerImageSignatures map[string]Signature |
| 105 | ReferrerSignatures map[string]string |
| 106 | } |
| 107 | |
| 108 | func (i *imageState) Initialize() { |
| 109 | if i.AttestationSignatures == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected