Support configurable TLS probes in the API and dashboard
This commit is contained in:
1 parent
0bde5627f0
commit
c7fdd2c430
38 files changed
+495
-203
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user