feat: freeze ssh and vnc port contracts

Define the minimum machine networking surface for the next host slice and
limit exposed guest ports to SSH and VNC.
This commit is contained in:
Harivansh Rathi 2026-04-08 02:47:27 +00:00
parent 04575d111c
commit 4028bb5a1d
3 changed files with 33 additions and 10 deletions

20
contract/networking.go Normal file
View file

@ -0,0 +1,20 @@
package host
type MachinePortName string
type PortProtocol string
const (
MachinePortNameSSH MachinePortName = "ssh"
MachinePortNameVNC MachinePortName = "vnc"
)
const (
PortProtocolTCP PortProtocol = "tcp"
)
type MachinePort struct {
Name MachinePortName `json:"name"`
Port uint16 `json:"port"`
Protocol PortProtocol `json:"protocol"`
}