Initial Backend
This commit is contained in:
parent
bcf92c21e6
commit
3f6ff87370
15 changed files with 782 additions and 0 deletions
34
backend/Services/ContainerService.cs
Normal file
34
backend/Services/ContainerService.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using ContainerDashboard.Models;
|
||||
using ContainerDashboard.Repositories;
|
||||
|
||||
namespace ContainerDashboard.Services;
|
||||
|
||||
public class ContainerService : IContainerService
|
||||
{
|
||||
private IContainerHandler _handler;
|
||||
|
||||
public ContainerService(IContainerHandler handler)
|
||||
{
|
||||
_handler = handler;
|
||||
}
|
||||
|
||||
public Task<Container> GetContainer(string containerName, string? containerNamespace)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public async Task<Container[]> GetContainers()
|
||||
{
|
||||
return await _handler.GetContainers();
|
||||
}
|
||||
|
||||
public Task StartContainer(Container container)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task StopContainer(Container container)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue