(action Action)
| 498 | } |
| 499 | |
| 500 | func (r *SimpleReactor) Handles(action Action) bool { |
| 501 | verbCovers := r.Verb == "*" || r.Verb == action.GetVerb() |
| 502 | if !verbCovers { |
| 503 | return false |
| 504 | } |
| 505 | resourceCovers := r.Resource == "*" || r.Resource == action.GetResource().Resource |
| 506 | if !resourceCovers { |
| 507 | return false |
| 508 | } |
| 509 | |
| 510 | return true |
| 511 | } |
| 512 | |
| 513 | func (r *SimpleReactor) React(action Action) (bool, runtime.Object, error) { |
| 514 | return r.Reaction(action) |
nothing calls this directly
no test coverage detected