mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
init
This commit is contained in:
17
app/Contracts/StorageProvider.php
Normal file
17
app/Contracts/StorageProvider.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use App\Models\Server;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
|
||||
interface StorageProvider
|
||||
{
|
||||
public function connect(): RedirectResponse;
|
||||
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user