Hetzner Service, DTOs, provision script
This commit is contained in:
24
app/Services/ServerProviders/ServerProviderService.php
Normal file
24
app/Services/ServerProviders/ServerProviderService.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\ServerProviders;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Saloon\Http\Connector;
|
||||
|
||||
interface ServerProviderService
|
||||
{
|
||||
protected Connector $connector;
|
||||
|
||||
public function createServer(
|
||||
string $name,
|
||||
string $serverType,
|
||||
string $location,
|
||||
string $image,
|
||||
): bool;
|
||||
|
||||
public function listServerTypes(): Collection;
|
||||
|
||||
public function listLocations(): Collection;
|
||||
|
||||
public function listImages(): Collection;
|
||||
}
|
||||
Reference in New Issue
Block a user