MCPcopy Index your code
hub / github.com/cli/cli / DigestWithAlg

Method DigestWithAlg

pkg/cmd/attestation/artifact/artifact.go:87–89  ·  view source on GitHub ↗

DigestWithAlg returns the digest:algorithm of the artifact

()

Source from the content-addressed store, hash-verified

85
86// DigestWithAlg returns the digest:algorithm of the artifact
87func (a *DigestedArtifact) DigestWithAlg() string {
88 return fmt.Sprintf("%s:%s", a.digestAlg, a.digest)
89}
90
91func (a *DigestedArtifact) NameRef() name.Reference {
92 return a.nameRef

Callers 8

verifyAssetRunFunction · 0.95
runVerifyFunction · 0.95
TestRunDownloadFunction · 0.95
runDownloadFunction · 0.95
verifyRunFunction · 0.80
GetOCIAttestationsFunction · 0.80
getAttestationsFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestRunDownloadFunction · 0.76