(ref string)
| 339 | } |
| 340 | |
| 341 | func 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 | |
| 349 | func policyReferenceResourceDescriptor(policyName, ref, orgName string, digest crv1.Hash) *PolicyDescriptor { |
| 350 | return &PolicyDescriptor{ |
no outgoing calls
no test coverage detected