mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 11:02:15 +00:00
21 lines
424 B
Go
21 lines
424 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"`
|
|
HostPort uint16 `json:"host_port,omitempty"`
|
|
Protocol PortProtocol `json:"protocol"`
|
|
}
|