(nodeID, url string, labels []string, source AttributionSource, rule string)
| 128 | } |
| 129 | |
| 130 | func (r Resolver) fromLabels(nodeID, url string, labels []string, source AttributionSource, rule string) IntentRecord { |
| 131 | return IntentRecord{ |
| 132 | Status: r.statusForLabels(labels), |
| 133 | Source: source, |
| 134 | RootNodeID: nodeID, |
| 135 | RootType: "artifact", |
| 136 | RootURL: url, |
| 137 | Labels: cloneStrings(labels), |
| 138 | Rule: rule, |
| 139 | ResolverVersion: r.ResolverVersion, |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func (r Resolver) unlinked(rule string) IntentRecord { |
| 144 | return IntentRecord{ |
no test coverage detected