@@ 24-67 (lines=44) @@ | ||
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 | * @param bool $fileOrder sort the results based on the path of the backing file |
|
45 | * |
|
46 | * @return Command |
|
47 | */ |
|
48 | public function ls(string $arg = null, bool $fileOrder = false): Command |
|
49 | { |
|
50 | return new Command(__METHOD__, get_defined_vars()); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * Verify objects in filestore. |
|
55 | * |
|
56 | * @Endpoint(name="filestore:verify") |
|
57 | * |
|
58 | * @param string $arg cid of objects to verify |
|
59 | * @param bool $fileOrder verify the objects based on the order of the backing file |
|
60 | * |
|
61 | * @return Command |
|
62 | */ |
|
63 | public function verify(string $arg = null, bool $fileOrder = false): Command |
|
64 | { |
|
65 | return new Command(__METHOD__, get_defined_vars()); |
|
66 | } |
|
67 | } |
|
68 |
@@ 24-81 (lines=58) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Pubsub implements Api |
|
25 | { |
|
26 | /** |
|
27 | * List subscribed topics by name. |
|
28 | * |
|
29 | * @Endpoint(name="pubsub:ls") |
|
30 | * |
|
31 | * @return Command |
|
32 | */ |
|
33 | public function ls(): Command |
|
34 | { |
|
35 | return new Command(__METHOD__, get_defined_vars()); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * List peers we are currently pubsubbing with. |
|
40 | * |
|
41 | * @Endpoint(name="pubsub:peers") |
|
42 | * |
|
43 | * @param string $arg topic to list connected peers of Required: no |
|
44 | * |
|
45 | * @return Command |
|
46 | */ |
|
47 | public function peers(string $arg = null): Command |
|
48 | { |
|
49 | return new Command(__METHOD__, get_defined_vars()); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * Publish a message to a given pubsub topic. |
|
54 | * |
|
55 | * @Endpoint(name="pubsub:pub") |
|
56 | * |
|
57 | * @param string $arg topic to publish to |
|
58 | * @param string $arg1 payload of message to publish |
|
59 | * |
|
60 | * @return Command |
|
61 | */ |
|
62 | public function pub(string $arg, string $arg1): Command |
|
63 | { |
|
64 | return new Command(__METHOD__, get_defined_vars()); |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Subscribe to messages on a given topic. |
|
69 | * |
|
70 | * @Endpoint(name="pubsub:sub") |
|
71 | * |
|
72 | * @param string $arg string name of topic to subscribe to |
|
73 | * @param bool $discover try to discover other peers subscribed to the same topic |
|
74 | * |
|
75 | * @return Command |
|
76 | */ |
|
77 | public function sub(string $arg, bool $discover = false): Command |
|
78 | { |
|
79 | return new Command(__METHOD__, get_defined_vars()); |
|
80 | } |
|
81 | } |
|
82 |
@@ 24-68 (lines=45) @@ | ||
21 | * @autogenerated |
|
22 | * @codeCoverageIgnore |
|
23 | */ |
|
24 | final class Stats implements Api |
|
25 | { |
|
26 | /** |
|
27 | * Show some diagnostic information on the bitswap agent. |
|
28 | * |
|
29 | * @Endpoint(name="stats:bitswap") |
|
30 | * |
|
31 | * @return Command |
|
32 | */ |
|
33 | public function bitswap(): Command |
|
34 | { |
|
35 | return new Command(__METHOD__, get_defined_vars()); |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Print ipfs bandwidth information. |
|
40 | * |
|
41 | * @Endpoint(name="stats:bw") |
|
42 | * |
|
43 | * @param string $peer specify a peer to print bandwidth for |
|
44 | * @param string $proto specify a protocol to print bandwidth for |
|
45 | * @param bool $poll print bandwidth at an interval |
|
46 | * @param string $interval time interval to wait between updating output, if ‘poll’ is true |
|
47 | * |
|
48 | * @return Command |
|
49 | */ |
|
50 | public function bw(string $peer = null, string $proto = null, bool $poll = false, string $interval = null): Command |
|
51 | { |
|
52 | return new Command(__METHOD__, get_defined_vars()); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Get stats for the currently used repo. |
|
57 | * |
|
58 | * @Endpoint(name="stats:repo") |
|
59 | * |
|
60 | * @param bool $human output RepoSize in MiB |
|
61 | * |
|
62 | * @return Command |
|
63 | */ |
|
64 | public function repo(bool $human = false): Command |
|
65 | { |
|
66 | return new Command(__METHOD__, get_defined_vars()); |
|
67 | } |
|
68 | } |
|
69 |