server creation wip

This commit is contained in:
2025-03-28 17:10:36 +00:00
parent 7d2bc3ca5e
commit 350cf6e240
16 changed files with 3180 additions and 30 deletions

View File

@@ -2,23 +2,25 @@
namespace App\Services\ServerProviders;
use App\Data\ServerProviders\CreatedServer;
use Illuminate\Support\Collection;
use Saloon\Http\Connector;
interface ServerProviderService
abstract class ServerProviderService
{
protected Connector $connector;
public function createServer(
abstract public function createServer(
string $name,
string $serverType,
string $location,
string $image,
): bool;
string $rootPassword,
): CreatedServer;
public function listServerTypes(): Collection;
abstract public function getServerTypes(): Collection;
public function listLocations(): Collection;
abstract public function getLocations(): Collection;
public function listImages(): Collection;
abstract public function getImages(): Collection;
}