From 89ffce20daf42d9ec7b716c3ed04dabfd367ea87 Mon Sep 17 00:00:00 2001 From: daniel-hbn Date: Thu, 30 Oct 2025 12:53:24 +0100 Subject: [PATCH] stuff --- Watcher/Controllers/ContainerController.cs | 21 +++++++++++++++++++++ Watcher/Views/Container/Overview.cshtml | 15 ++++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/Watcher/Controllers/ContainerController.cs b/Watcher/Controllers/ContainerController.cs index f3f5c63..2263d06 100644 --- a/Watcher/Controllers/ContainerController.cs +++ b/Watcher/Controllers/ContainerController.cs @@ -31,4 +31,25 @@ public class ContainerController : Controller return View(viewModel); } + public async Task RestartContainer(string container_id) + { + //Befehl an Agent schicken?? + + throw new NotImplementedException(); + } + + public async Task StopContainer(string container_id) + { + //Befehl an Agent schicken?? + + throw new NotImplementedException(); + } + + public async Task UpdateContainer(string container_id) + { + //Befehl an Agent schicken?? + + throw new NotImplementedException(); + } + } diff --git a/Watcher/Views/Container/Overview.cshtml b/Watcher/Views/Container/Overview.cshtml index e3edfc3..8e36d45 100644 --- a/Watcher/Views/Container/Overview.cshtml +++ b/Watcher/Views/Container/Overview.cshtml @@ -25,9 +25,18 @@ @container.ContainerId @container.Name @container.Image - - @container.ServerId - nicht verfügbar + @container.ServerId + + + Neustart + + + Stop + + + Update + + }