mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-29 19:41:15 +02:00
39 lines
1.1 KiB
Go
39 lines
1.1 KiB
Go
//nolint:tagliatelle // Preserve the original vmUID keys for wire compatibility.
|
|
package v1
|
|
|
|
type WatchInstruction struct {
|
|
PortForwardAction *PortForwardAction `json:"portForwardAction,omitempty"`
|
|
SyncVMsAction *SyncVMsAction `json:"syncVMsAction,omitempty"`
|
|
ResolveIPAction *ResolveIPAction `json:"resolveIPAction,omitempty"`
|
|
}
|
|
|
|
type PortForwardAction struct {
|
|
Session string `json:"session"`
|
|
VMUID string `json:"vmUID"`
|
|
Port uint16 `json:"port"`
|
|
Target *PortForwardTarget `json:"target,omitempty"`
|
|
}
|
|
|
|
type PortForwardTarget struct {
|
|
HostProcess *PortForwardTargetHostProcess `json:"hostProcess,omitempty"`
|
|
TartGuestAgent *PortForwardTargetTartGuestAgent `json:"tartGuestAgent,omitempty"`
|
|
}
|
|
|
|
type PortForwardTargetHostProcess struct {
|
|
VMUID string `json:"vmUID"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type PortForwardTargetTartGuestAgent struct {
|
|
VMUID string `json:"vmUID"`
|
|
}
|
|
|
|
type SyncVMsAction struct {
|
|
// nothing for now
|
|
}
|
|
|
|
type ResolveIPAction struct {
|
|
Session string `json:"session"`
|
|
VMUID string `json:"vmUID"`
|
|
}
|