stuff
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user