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

Function RefParts

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

Source from the content-addressed store, hash-verified

339}
340
341func RefParts(ref string) (string, string) {
342 parts := strings.SplitN(ref, "://", 2)
343 if len(parts) == 2 {
344 return parts[0], parts[1]
345 }
346 return "", parts[0]
347}
348
349func policyReferenceResourceDescriptor(policyName, ref, orgName string, digest crv1.Hash) *PolicyDescriptor {
350 return &PolicyDescriptor{

Callers 7

createPoliciesFunction · 0.92
getGroupLoaderFunction · 0.85
IsProviderSchemeFunction · 0.85
ensureSchemeFunction · 0.85
getLoaderMethod · 0.85
isURLPathFunction · 0.85
resolveReferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected