-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c589176
commit 2de65b5
Showing
20 changed files
with
344 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the "php-ipfs" package. | ||
* | ||
* (c) Robert Schönthal <robert.schoenthal@gmail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace IPFS\Api; | ||
|
||
use IPFS\Annotation\Api as Endpoint; | ||
use IPFS\Command\Command; | ||
|
||
/** | ||
* @author Robert Schönthal <robert.schoenthal@gmail.com> | ||
* @autogenerated | ||
* @codeCoverageIgnore | ||
*/ | ||
final class Dag implements Api | ||
{ | ||
/** | ||
* Get a dag node from ipfs. | ||
* | ||
* @Endpoint(name="dag:get") | ||
* | ||
* @param string $arg the object to get Required: | ||
* | ||
* @return Command | ||
*/ | ||
public function get(string $arg): Command | ||
{ | ||
return new Command(__METHOD__, get_defined_vars()); | ||
} | ||
|
||
/** | ||
* Add a dag node to ipfs. | ||
* | ||
* @Endpoint(name="dag:put") | ||
* | ||
* @param string $file the object to put Required: | ||
* @param string $format format that the object will be added as | ||
* @param string $inputEnc format that the input object will be | ||
* | ||
* @return Command | ||
*/ | ||
public function put(string $file, string $format = 'cbor', string $inputEnc = 'json'): Command | ||
{ | ||
return new Command(__METHOD__, get_defined_vars()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.