mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-17 20:25:50 +02:00
Support running host processes alongside VMs (#482)
* Regenerate .pb with protoc-gen-go v1.36.11 * Support running host processes alongside VMs * Replace existing host processes when starting a set
This commit is contained in:
@@ -169,6 +169,19 @@ func (service *VMsService) PortForward(
|
||||
})
|
||||
}
|
||||
|
||||
func (service *VMsService) PortForwardHostProcess(
|
||||
ctx context.Context,
|
||||
name string,
|
||||
hostProcessName string,
|
||||
waitSeconds uint16,
|
||||
) (net.Conn, error) {
|
||||
return service.client.wsRequest(ctx, fmt.Sprintf("vms/%s/port-forward", url.PathEscape(name)),
|
||||
map[string]string{
|
||||
"hostProcess": hostProcessName,
|
||||
"wait": strconv.FormatUint(uint64(waitSeconds), 10),
|
||||
})
|
||||
}
|
||||
|
||||
func (service *VMsService) Exec(
|
||||
ctx context.Context,
|
||||
name string,
|
||||
|
||||
Reference in New Issue
Block a user