Skip to content

Commit f43ab48

Browse files
Expose Match source ID to callers
1 parent a36d461 commit f43ab48

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

policy/parser.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ type Match struct {
301301
rule *Rule
302302
}
303303

304+
// SourceID returns the source identifier associated with the match.
305+
func (m *Match) SourceID() int64 {
306+
return m.exprID
307+
}
308+
304309
// Condition returns the condition CEL expression.
305310
func (m *Match) Condition() ValueString {
306311
return m.condition

0 commit comments

Comments
 (0)