MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / ExtractDigest

Function ExtractDigest

pkg/policies/loader.go:358–365  ·  view source on GitHub ↗
(ref string)

Source from the content-addressed store, hash-verified

356}
357
358func ExtractDigest(ref string) (string, string) {
359 parts := strings.SplitN(ref, "@", 2)
360 if len(parts) == 2 {
361 return parts[0], parts[1]
362 }
363
364 return parts[0], ""
365}

Callers 8

ResolveMethod · 0.92
ResolveGroupMethod · 0.92
LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
splitPolicyRefFunction · 0.85

Calls

no outgoing calls

Tested by 1