Support configurable TLS probes in the API and dashboard

This commit is contained in:
ayurishchev committed 2026-11-20 21:15:22 +03:00
1 parent 0bde5627f0
commit c7fdd2c430
38 files changed
+495 -203

No files matched your search

+15 -2
View File
@@ -4,6 +4,8 @@ import (
"fmt"
"strconv"
"time"
"cloudipvalidator/internal/inbound"
)
// Wire shapes for control-api's /api/v1/admin/* surface, defined locally
@@ -412,8 +414,19 @@ type orchestratorSettingsDTO struct {
}
type inboundChecksDTO struct {
Ports []int `json:"ports"`
ICMP bool `json:"icmp"`
Ports []int `json:"ports"`
ICMP bool `json:"icmp"`
TLSChecks []inbound.TLSCheck `json:"tls_checks"`
}
func (v inboundChecksDTO) TLSMode() string {
if v.TLSChecks == nil {
return "auto"
}
if len(v.TLSChecks) == 0 {
return "disabled"
}
return "custom"
}
// autoCycleDTO mirrors internal/httpapi's autoCycleDTO — the status and