task-launcher
Warning
This content is part of the legacy version of Waypoint that is no longer actively maintained. For additional information on the new vision of Waypoint, check out this blog post and the HCP Waypoint documentation.
The TaskLauncher
component makes possible launching Waypoint On-Demand Runners
in a given platform, to perform remote operations.
https://pkg.go.dev/github.com/hashicorp/waypoint-plugin-sdk/component#TaskLauncher
TaskLauncher
has three functions which must be implemented, that all return
a function to be called by Waypoint. The function returned by StartTaskFunc
"starts" the on-demand runner in the platform. The function returned by
StopTaskFunc
stops & removes the on-demand runner in the platform. Finally,
WatchTaskFunc
returns a function that logs the stream of output from the
on-demand runner. This is useful for investigating a job by viewing its logs
with the waypoint job get-stream
command.