ExcludeImage determines whether the process generating event is present in the list of excluded images. If the hit occurs, the event associated with the process is dropped.
(ps *pstypes.PS)
| 206 | // list of excluded images. If the hit occurs, the event associated with the process |
| 207 | // is dropped. |
| 208 | func (c *EventSourceConfig) ExcludeImage(ps *pstypes.PS) bool { |
| 209 | if len(c.excludedImages) == 0 { |
| 210 | return false |
| 211 | } |
| 212 | if ps == nil { |
| 213 | return false |
| 214 | } |
| 215 | return c.excludedImages[ps.Name] |
| 216 | } |
no outgoing calls