buildx/monitor
Jonathan A. Sternberg 38cf84346c
build: change build handler to evaluate instead of onresult
This changes the build handler to customize the behavior of evaluate
rather than onresult and also simplifies the `ResultHandle`. The
`ResultHandle` is now only valid within the gateway callback and can be
used to start containers from the handler.

`Evaluate` now executes inside of the gateway callback rather than
having a separate implementation that executes or re-invokes the build.
This keeps the gateway callback session open until the debugger has
returned.

The `ErrReload` for monitor has now been moved into the `build` package
and been renamed to `ErrRestart`. This is because it restarts the build
so the name makes a bit more sense. The actual use of this functionality
is still tied to the monitor reload.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-06-10 11:48:41 -05:00
..
commands controller: remove remaining parts of the controller 2025-06-05 11:57:03 -05:00
processes controller: remove remaining parts of the controller 2025-06-05 11:57:03 -05:00
types controller: remove remaining parts of the controller 2025-06-05 11:57:03 -05:00
monitor.go build: change build handler to evaluate instead of onresult 2025-06-10 11:48:41 -05:00