@@ 24-61 (lines=38) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Bootstrap implements Api |
|
25 | { |
|
26 | /** |
|
27 | * Add default peers to the bootstrap list. |
|
28 | * |
|
29 | * @Endpoint(name="bootstrap:add:default") |
|
30 | * |
|
31 | * @return Command |
|
32 | */ |
|
33 | public function addDefault(): Command |
|
34 | { |
|
35 | return new Command(__METHOD__, get_defined_vars()); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Show peers in the bootstrap list. |
|
40 | * |
|
41 | * @Endpoint(name="bootstrap:list") |
|
42 | * |
|
43 | * @return Command |
|
44 | */ |
|
45 | public function list(): Command |
|
46 | { |
|
47 | return new Command(__METHOD__, get_defined_vars()); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Remove all peers from the bootstrap list. |
|
52 | * |
|
53 | * @Endpoint(name="bootstrap:rm:all") |
|
54 | * |
|
55 | * @return Command |
|
56 | */ |
|
57 | public function rmAll(): Command |
|
58 | { |
|
59 | return new Command(__METHOD__, get_defined_vars()); |
|
60 | } |
|
61 | } |
|
62 |
@@ 24-63 (lines=40) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Config implements Api |
|
25 | { |
|
26 | /** |
|
27 | * Open the config file for editing in $EDITOR. |
|
28 | * |
|
29 | * @Endpoint(name="config:edit") |
|
30 | * |
|
31 | * @return Command |
|
32 | */ |
|
33 | public function edit(): Command |
|
34 | { |
|
35 | return new Command(__METHOD__, get_defined_vars()); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Replace the config with . |
|
40 | * |
|
41 | * @Endpoint(name="config:replace") |
|
42 | * |
|
43 | * @param string $file the file to use as the new config |
|
44 | * |
|
45 | * @return Command |
|
46 | */ |
|
47 | public function replace(string $file): Command |
|
48 | { |
|
49 | return new Command(__METHOD__, get_defined_vars()); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * Output config file contents. |
|
54 | * |
|
55 | * @Endpoint(name="config:show") |
|
56 | * |
|
57 | * @return Command |
|
58 | */ |
|
59 | public function show(): Command |
|
60 | { |
|
61 | return new Command(__METHOD__, get_defined_vars()); |
|
62 | } |
|
63 | } |
|
64 |
@@ 24-64 (lines=41) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Log implements Api |
|
25 | { |
|
26 | /** |
|
27 | * Change the logging level. |
|
28 | * |
|
29 | * @Endpoint(name="log:level") |
|
30 | * |
|
31 | * @param string $arg the subsystem logging identifier |
|
32 | * @param string $arg1 the log level, with ‘debug’ the most verbose and ‘critical’ the least verbose |
|
33 | * |
|
34 | * @return Command |
|
35 | */ |
|
36 | public function level(string $arg, string $arg1): Command |
|
37 | { |
|
38 | return new Command(__METHOD__, get_defined_vars()); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * List the logging subsystems. |
|
43 | * |
|
44 | * @Endpoint(name="log:ls") |
|
45 | * |
|
46 | * @return Command |
|
47 | */ |
|
48 | public function ls(): Command |
|
49 | { |
|
50 | return new Command(__METHOD__, get_defined_vars()); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * Read the event log. |
|
55 | * |
|
56 | * @Endpoint(name="log:tail") |
|
57 | * |
|
58 | * @return Command |
|
59 | */ |
|
60 | public function tail(): Command |
|
61 | { |
|
62 | return new Command(__METHOD__, get_defined_vars()); |
|
63 | } |
|
64 | } |
|
65 |
@@ 24-61 (lines=38) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Tour implements Api |
|
25 | { |
|
26 | /** |
|
27 | * Show a list of IPFS Tour topics. |
|
28 | * |
|
29 | * @Endpoint(name="tour:list") |
|
30 | * |
|
31 | * @return Command |
|
32 | */ |
|
33 | public function list(): Command |
|
34 | { |
|
35 | return new Command(__METHOD__, get_defined_vars()); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Show the next IPFS Tour topic. |
|
40 | * |
|
41 | * @Endpoint(name="tour:next") |
|
42 | * |
|
43 | * @return Command |
|
44 | */ |
|
45 | public function next(): Command |
|
46 | { |
|
47 | return new Command(__METHOD__, get_defined_vars()); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Restart the IPFS Tour. |
|
52 | * |
|
53 | * @Endpoint(name="tour:restart") |
|
54 | * |
|
55 | * @return Command |
|
56 | */ |
|
57 | public function restart(): Command |
|
58 | { |
|
59 | return new Command(__METHOD__, get_defined_vars()); |
|
60 | } |
|
61 | } |
|
62 |
@@ 24-55 (lines=32) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Key implements Api |
|
25 | { |
|
26 | /** |
|
27 | * Create a new keypair. |
|
28 | * |
|
29 | * @Endpoint(name="key:gen") |
|
30 | * |
|
31 | * @param string $arg name of key to create Required: |
|
32 | * @param string $type type of the key to create [rsa, ed25519] |
|
33 | * @param int $size size of the key to generate |
|
34 | * |
|
35 | * @return Command |
|
36 | */ |
|
37 | public function gen(string $arg, string $type = null, int $size = 0): Command |
|
38 | { |
|
39 | return new Command(__METHOD__, get_defined_vars()); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * List all local keypairs. |
|
44 | * |
|
45 | * @Endpoint(name="key:list") |
|
46 | * |
|
47 | * @param bool $l show extra information about keys |
|
48 | * |
|
49 | * @return Command |
|
50 | */ |
|
51 | public function list(bool $l = false): Command |
|
52 | { |
|
53 | return new Command(__METHOD__, get_defined_vars()); |
|
54 | } |
|
55 | } |
|
56 |
@@ 24-65 (lines=42) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Filestore implements Api |
|
25 | { |
|
26 | /** |
|
27 | * List blocks that are both in the filestore and standard block storage. |
|
28 | * |
|
29 | * @Endpoint(name="filestore:dups") |
|
30 | * |
|
31 | * @return Command |
|
32 | */ |
|
33 | public function dups(): Command |
|
34 | { |
|
35 | return new Command(__METHOD__, get_defined_vars()); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * List objects in filestore. |
|
40 | * |
|
41 | * @Endpoint(name="filestore:ls") |
|
42 | * |
|
43 | * @param string $arg cid of objects to list |
|
44 | * |
|
45 | * @return Command |
|
46 | */ |
|
47 | public function ls(string $arg = null): Command |
|
48 | { |
|
49 | return new Command(__METHOD__, get_defined_vars()); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * Verify objects in filestore. |
|
54 | * |
|
55 | * @Endpoint(name="filestore:verify") |
|
56 | * |
|
57 | * @param string $arg cid of objects to verify |
|
58 | * |
|
59 | * @return Command |
|
60 | */ |
|
61 | public function verify(string $arg = null): Command |
|
62 | { |
|
63 | return new Command(__METHOD__, get_defined_vars()); |
|
64 | } |
|
65 | } |
|
66 |