This commit is contained in:
2025-10-30 12:53:24 +01:00
parent 2e7741f6fe
commit 89ffce20da
2 changed files with 33 additions and 3 deletions

View File

@@ -31,4 +31,25 @@ public class ContainerController : Controller
return View(viewModel); return View(viewModel);
} }
public async Task<IActionResult> RestartContainer(string container_id)
{
//Befehl an Agent schicken??
throw new NotImplementedException();
}
public async Task<IActionResult> StopContainer(string container_id)
{
//Befehl an Agent schicken??
throw new NotImplementedException();
}
public async Task<IActionResult> UpdateContainer(string container_id)
{
//Befehl an Agent schicken??
throw new NotImplementedException();
}
} }

View File

@@ -25,9 +25,18 @@
<td>@container.ContainerId</td> <td>@container.ContainerId</td>
<td>@container.Name</td> <td>@container.Name</td>
<td>@container.Image</td> <td>@container.Image</td>
<!-- TODO: Link Hardcoded --> <td><a class="ServiceEntry" href="/Server/Details/@container.ServerId">@container.ServerId</a></td>
<td><a class="ServiceEntry" href="/Server/Details/2">@container.ServerId</a></td> <td>
<td>nicht verfügbar</td> <a asp-action="#" asp-route-id="#" class="btn btn-outline-primary">
<i class="bi bi-pencil-square me-1"></i> Neustart
</a>
<a asp-action="#" asp-route-id="#" class="btn btn-outline-primary">
<i class="bi bi-pencil-square me-1"></i> Stop
</a>
<a asp-action="#" asp-route-id="#" class="btn btn-outline-primary">
<i class="bi bi-pencil-square me-1"></i> Update
</a>
</td>
</tr> </tr>
} }
</table> </table>