mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 15:02:34 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
27 lines
507 B
PHP
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;
|
|
}
|