(keys ...string)
| 124 | } |
| 125 | |
| 126 | func (t *scopeTracker) mark(keys ...string) { |
| 127 | if t == nil || len(keys) == 0 { |
| 128 | return |
| 129 | } |
| 130 | t.mu.Lock() |
| 131 | defer t.mu.Unlock() |
| 132 | for _, k := range keys { |
| 133 | t.seen[k] = struct{}{} |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // unmatched returns the sorted scope keys declared in ri that were never marked |
| 138 | // (i.e. matched no policy attachment), so the caller can warn about likely |
no outgoing calls