| 535 | } |
| 536 | |
| 537 | type Hook interface { |
| 538 | // Run executes the hook with the provided state. |
| 539 | Run(*specs.State) error |
| 540 | } |
| 541 | |
| 542 | // NewFunctionHook will call the provided function when the hook is run. |
| 543 | func NewFunctionHook(f func(*specs.State) error) FuncHook { |
no outgoing calls
no test coverage detected
searching dependent graphs…