vito/app/Contracts/StorageProvider.php
Saeed Vaziry 7d98986f52
added FTP support to storage providers (#58)
* added FTP support to storage providers

* build and code style fix
2023-09-24 12:50:01 +02:00

21 lines
437 B
PHP

<?php
namespace App\Contracts;
use App\Models\Server;
interface StorageProvider
{
public function validationRules(): array;
public function credentialData(array $input): array;
public function connect(): bool;
public function upload(Server $server, string $src, string $dest): array;
public function download(Server $server, string $src, string $dest): void;
public function delete(array $paths): void;
}