Files
ladill-servers/app/Services/Hosting/Contracts/ComputeProviderInterface.php
T
isaaccladandCursor b6c8ac343f 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>
2026-06-06 19:18:30 +00:00

37 lines
1.0 KiB
PHP

<?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;
}