Files
dnsmasq-webui/src/DnsmasqWebUI/Infrastructure/Services/Dnsmasq/Version/Abstractions/IDnsmasqVersionService.cs
T
alex d910688742 Add dnsmasq version awareness, readiness endpoint, and Docker healthcheck
- Options: VersionCommand, VersionTimeoutSeconds, MinimumVersion, EnforceMinimumVersion
- Version probe service and parser; startup enforcement when EnforceMinimumVersion
- Save flow: block save on probe failure (VersionProbeFailed) or version below minimum (UnsupportedVersion)
- Status API and Dnsmasq page: show version with tooltip, link to CHANGELOG
- Readiness: GET /healthz/ready (version + dnsmasq running when StatusCommand set)
- MapReadyHealthCheck extension; Dockerfile HEALTHCHECK + curl; compose healthcheck and service_healthy
- Docs: README and agents.md updated
2026-03-08 23:12:38 +10:00

12 lines
556 B
C#

using DnsmasqWebUI.Infrastructure.Services.Registration.Abstractions;
using DnsmasqWebUI.Models.Dnsmasq;
namespace DnsmasqWebUI.Infrastructure.Services.Dnsmasq.Version.Abstractions;
/// <summary>Probes installed dnsmasq version and compares it to the configured minimum.</summary>
public interface IDnsmasqVersionService : IApplicationScopedService
{
/// <summary>Runs the version command, parses output, and returns version info including support status.</summary>
Task<DnsmasqVersionInfo> GetVersionInfoAsync(CancellationToken ct = default);
}