(policyName, ref, orgName string, digest crv1.Hash)
| 347 | } |
| 348 | |
| 349 | func policyReferenceResourceDescriptor(policyName, ref, orgName string, digest crv1.Hash) *PolicyDescriptor { |
| 350 | return &PolicyDescriptor{ |
| 351 | URI: ref, |
| 352 | Name: policyName, |
| 353 | Digest: digest.String(), |
| 354 | OrgName: orgName, |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | func ExtractDigest(ref string) (string, string) { |
| 359 | parts := strings.SplitN(ref, "@", 2) |