Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommandWaitHandler ¶
func RunCommandWaitHandler(ctx context.Context, a runcommand.DefaultAPI, projectId, serverId, region, commandId string) *wait.AsyncActionHandler[runcommand.CommandDetails]
RunCommandWaitHandler will wait for a run command to reach a terminal state. COMPLETED is treated as success and returns the CommandDetails with no error. FAILED is treated as an error: the handler returns a non-nil error and the CommandDetails (containing exit code and output) so callers can surface diagnostic information without an additional API call.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.