Files
vito/app/StorageProviders/StorageProvider.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

27 lines
507 B
PHP

<?php
namespace App\StorageProviders;
use App\Models\Server;
use App\SSH\Storage\Storage;
interface StorageProvider
{
public static function id(): string;
/**
* @return array<string, string>
*/
public function validationRules(): array;
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function credentialData(array $input): array;
public function connect(): bool;
public function ssh(Server $server): Storage;
}