Extract Ladill Servers as standalone app at servers.ladill.com.
VPS and dedicated server ordering, managed panels, SSO, billing, and launcher integration — forked from hosting infrastructure with server-focused routes and dashboard. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Hosting\Contracts;
|
||||
|
||||
interface ComputeProviderInterface
|
||||
{
|
||||
public function createInstance(array $config): array;
|
||||
|
||||
public function getInstance(string $instanceId): ?array;
|
||||
|
||||
public function listInstances(array $filters = []): array;
|
||||
|
||||
public function startInstance(string $instanceId): bool;
|
||||
|
||||
public function stopInstance(string $instanceId): bool;
|
||||
|
||||
public function rebootInstance(string $instanceId): bool;
|
||||
|
||||
public function deleteInstance(string $instanceId): bool;
|
||||
|
||||
public function reinstallInstance(string $instanceId, string $image): bool;
|
||||
|
||||
public function createSnapshot(string $instanceId, string $name): array;
|
||||
|
||||
public function listSnapshots(string $instanceId): array;
|
||||
|
||||
public function deleteSnapshot(string $snapshotId): bool;
|
||||
|
||||
public function restoreSnapshot(string $instanceId, string $snapshotId): bool;
|
||||
|
||||
public function getAvailableImages(): array;
|
||||
|
||||
public function getAvailableRegions(): array;
|
||||
|
||||
public function getAvailableProducts(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user