SimpleProxyReactor is a ProxyReactor. Each reaction function is attached to a given resource. "*" matches everything for that value. For instance, *,pods matches all verbs on pods. This allows for easier composition of reaction functions.
| 538 | // SimpleProxyReactor is a ProxyReactor. Each reaction function is attached to a given resource. "*" matches everything for that value. |
| 539 | // For instance, *,pods matches all verbs on pods. This allows for easier composition of reaction functions. |
| 540 | type SimpleProxyReactor struct { |
| 541 | Resource string |
| 542 | |
| 543 | Reaction ProxyReactionFunc |
| 544 | } |
| 545 | |
| 546 | func (r *SimpleProxyReactor) Handles(action Action) bool { |
| 547 | resourceCovers := r.Resource == "*" || r.Resource == action.GetResource().Resource |
nothing calls this directly
no outgoing calls
no test coverage detected