Files
CaddyManager/CaddyManager.Contracts/Docker/IDockerService.cs
ebolo d0687c9134
All checks were successful
Caddy Manager CI build / docker (push) Successful in 11m33s
feat(docker): Gracefully reload Caddy configuration
2026-07-26 11:39:59 +07:00

20 lines
726 B
C#

namespace CaddyManager.Contracts.Docker;
/// <summary>
/// Contract for the service to interact with Docker
/// </summary>
public interface IDockerService
{
/// <summary>
/// Method to help restart the Caddy container
/// </summary>
/// <returns></returns>
Task RestartCaddyContainerAsync();
/// <summary>
/// Method to gracefully reload the Caddy configuration without restarting the container. Caddy validates the
/// configuration before applying it, so a broken configuration leaves the running one untouched.
/// </summary>
/// <returns>Whether the reload succeeded, along with Caddy's output when it did not</returns>
Task<CaddyReloadResponse> ReloadCaddyContainerAsync();
}