mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 08:03:40 +00:00
Define the minimum machine networking surface for the next host slice and limit exposed guest ports to SSH and VNC.
20 lines
369 B
Go
20 lines
369 B
Go
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"`
|
|
}
|