NewMachineClient returns a client for the Machine from the given config.
(c config)
| 1486 | |
| 1487 | // NewMachineClient returns a client for the Machine from the given config. |
| 1488 | func NewMachineClient(c config) *MachineClient { |
| 1489 | return &MachineClient{config: c} |
| 1490 | } |
| 1491 | |
| 1492 | // Use adds a list of mutation hooks to the hooks stack. |
| 1493 | // A call to `Use(f, g, h)` equals to `machine.Hooks(f(g(h())))`. |