MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / mark

Method mark

pkg/policies/runtime_inputs.go:126–135  ·  view source on GitHub ↗
(keys ...string)

Source from the content-addressed store, hash-verified

124}
125
126func (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

Callers 2

Calls

no outgoing calls

Tested by 1