NewGenerator creates a new VSA predicate generator
(report applicationsnapshot.Report, comp applicationsnapshot.Component, policySource string, policy PublicKeyProvider)
| 134 | |
| 135 | // NewGenerator creates a new VSA predicate generator |
| 136 | func NewGenerator(report applicationsnapshot.Report, comp applicationsnapshot.Component, policySource string, policy PublicKeyProvider) *Generator { |
| 137 | return &Generator{ |
| 138 | Report: report, |
| 139 | Component: comp, |
| 140 | PolicySource: policySource, |
| 141 | Policy: policy, |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | // normalizeIndexRef normalizes an image reference to its pinned digest form if it's an index |
| 146 | func normalizeIndexRef(ref string, exp *applicationsnapshot.ExpansionInfo) string { |
no outgoing calls