add support for tcp cluster connections in uncloud config

This commit is contained in:
Pavel Sviderski
2024-11-28 18:53:47 +10:00
parent 6d1c3aa5b2
commit 3d5fe0a824
2 changed files with 16 additions and 9 deletions
+2
View File
@@ -2,6 +2,7 @@ package config
import (
"net"
"net/netip"
"strconv"
"strings"
"uncloud/internal/secret"
@@ -14,6 +15,7 @@ const (
type MachineConnection struct {
SSH SSHDestination `toml:"ssh,omitempty"`
TCP netip.AddrPort `toml:"tcp,omitempty"`
Host string `toml:"host,omitempty"`
PublicKey secret.Secret `toml:"public_key,omitempty"`
}