mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
25 lines
465 B
PHP
25 lines
465 B
PHP
<?php
|
|
|
|
namespace App\StorageProviders;
|
|
|
|
use App\Models\Server;
|
|
use App\SSH\Storage\Storage;
|
|
|
|
interface StorageProvider
|
|
{
|
|
/**
|
|
* @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;
|
|
}
|