1 | <?php |
||
24 | final class Tar implements Api |
||
25 | { |
||
26 | /** |
||
27 | * Import a tar file into ipfs. |
||
28 | * |
||
29 | * @Endpoint(name="tar:add") |
||
30 | * |
||
31 | * @param string $file tar file to add |
||
32 | * |
||
33 | * @return Command |
||
34 | */ |
||
35 | public function add(string $file): Command |
||
39 | |||
40 | /** |
||
41 | * Export a tar file from IPFS. |
||
42 | * |
||
43 | * @Endpoint(name="tar:cat") |
||
44 | * |
||
45 | * @param string $arg ipfs path of archive to export |
||
46 | * |
||
47 | * @return Command |
||
48 | */ |
||
49 | public function cat(string $arg): Command |
||
53 | } |
||
54 |