(root RootReference, source AttributionSource, rule string)
| 115 | } |
| 116 | |
| 117 | func (r Resolver) fromRoot(root RootReference, source AttributionSource, rule string) IntentRecord { |
| 118 | return IntentRecord{ |
| 119 | Status: r.statusForLabels(root.Labels), |
| 120 | Source: source, |
| 121 | RootNodeID: root.NodeID, |
| 122 | RootType: root.Type, |
| 123 | RootURL: root.URL, |
| 124 | Labels: cloneStrings(root.Labels), |
| 125 | Rule: rule, |
| 126 | ResolverVersion: r.ResolverVersion, |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | func (r Resolver) fromLabels(nodeID, url string, labels []string, source AttributionSource, rule string) IntentRecord { |
| 131 | return IntentRecord{ |
no test coverage detected