MCPcopy Create free account
hub / github.com/conforma/cli / imageState

Struct imageState

acceptance/image/image.go:94–106  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

92// "registry:port/acceptance/sha256-hash.att" and the Signature values hold more
93// information about the signature of the image/data itself.
94type 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
108func (i *imageState) Initialize() {
109 if i.AttestationSignatures == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected