Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
358
func
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
Resolve
Method · 0.92
ResolveGroup
Method · 0.92
TestExtractNameAndDigestFromRef
Function · 0.85
Load
Method · 0.85
Load
Method · 0.85
Load
Method · 0.85
Load
Method · 0.85
splitPolicyRef
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestExtractNameAndDigestFromRef
Function · 0.68