model: Site and Mapping carry optional tags
CI / test (push) Failing after 55s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-27 03:29:26 -06:00
1 parent 64101e00d2
commit 6753422f7a
1 file changed
+4 -1
+4 -1
View File
@@ -61,7 +61,9 @@ type Site struct {
Local bool `json:"local"`
EdgeID string `json:"edgeId,omitempty"` // the edge a local site belongs to
TunnelIP string `json:"tunnelIp,omitempty"` // the site's address inside the tunnel network
Tags []string `json:"tags,omitempty"` // labels for grouping and filtering in the dashboard
TunnelIP string `json:"tunnelIp,omitempty"` // the site's address inside the tunnel network
PublicKey string `json:"publicKey,omitempty"` // WireGuard public key, reported by the agent
// Version is the release the program reports (e.g. v0.1.5). AutoUpdate says whether it may update
@@ -125,6 +127,7 @@ type Mapping struct {
Hostname string `json:"hostname,omitempty"` // web/tls only; "*.example.com" allowed
Targets []Target `json:"targets"` // udp uses only the first
Enabled bool `json:"enabled"`
Tags []string `json:"tags,omitempty"` // labels for grouping and filtering in the dashboard
// ProxyProtocol ("v1" or "v2") makes the edge start each tcp/tls connection to the
// target with a PROXY protocol header carrying the real client address.
ProxyProtocol string `json:"proxyProtocol,omitempty"`