2019-05-24 01:07:56 -05:00
|
|
|
(defpackage :cl-ipfs-api2
|
2019-05-22 01:00:40 -05:00
|
|
|
(:use :cl :arnesi)
|
2019-05-24 01:07:56 -05:00
|
|
|
(:nicknames :cl-ipfs :ipfs :cl-ipfs-api²)
|
2019-05-22 01:00:40 -05:00
|
|
|
(:export
|
|
|
|
*api-host*
|
2019-05-24 00:08:19 -05:00
|
|
|
*api-root*
|
2019-06-18 02:39:35 -05:00
|
|
|
*ipfs-root*
|
2019-05-24 00:08:19 -05:00
|
|
|
|
2019-06-06 19:48:18 -05:00
|
|
|
;; calls
|
2019-05-22 01:00:40 -05:00
|
|
|
:dl
|
|
|
|
:cat
|
2019-05-24 00:08:19 -05:00
|
|
|
:add
|
|
|
|
:dns
|
|
|
|
:id
|
|
|
|
:ls
|
|
|
|
:resolve
|
|
|
|
:shutdown
|
|
|
|
|
2019-06-06 19:48:18 -05:00
|
|
|
;; bitswap calls
|
|
|
|
:bitswap-ledger
|
|
|
|
:bitswap-reprovide
|
|
|
|
:bitswap-stat
|
|
|
|
:bitswap-wantlist
|
2019-06-06 19:39:10 -05:00
|
|
|
|
2019-06-06 19:48:18 -05:00
|
|
|
;; block calls
|
|
|
|
:block-get
|
|
|
|
:block-put
|
|
|
|
:block-rm
|
|
|
|
:block-stat
|
2019-05-24 01:07:56 -05:00
|
|
|
|
2019-06-06 19:48:18 -05:00
|
|
|
;; bootstrap calls
|
2019-05-24 01:16:00 -05:00
|
|
|
:bootstrap
|
2019-06-06 19:48:18 -05:00
|
|
|
:bootstrap-list
|
|
|
|
:bootstrap-add
|
|
|
|
:bootstrap-add-default
|
|
|
|
:bootstrap-rm
|
|
|
|
:bootstrap-rm-all
|
2019-05-24 01:16:00 -05:00
|
|
|
|
2019-06-06 19:48:18 -05:00
|
|
|
;; cid calls
|
|
|
|
:cid-base32
|
|
|
|
:cid-bases
|
2019-06-06 19:25:17 -05:00
|
|
|
|
2019-06-06 19:48:18 -05:00
|
|
|
;; config calls
|
2019-05-24 00:08:19 -05:00
|
|
|
:config
|
2019-06-06 19:48:18 -05:00
|
|
|
:config-show
|
2019-05-24 00:08:19 -05:00
|
|
|
|
2019-06-06 19:59:22 -05:00
|
|
|
;; dag calls
|
|
|
|
:dag-get
|
|
|
|
:dag-put
|
|
|
|
:dag-resolve
|
|
|
|
|
2019-06-06 23:00:44 -05:00
|
|
|
;; dht calls
|
|
|
|
:dht-findpeer
|
|
|
|
:dht-findprovs
|
|
|
|
:dht-get
|
|
|
|
:dht-provide
|
|
|
|
:dht-put
|
|
|
|
:dht-query
|
|
|
|
|
2019-06-06 23:07:49 -05:00
|
|
|
;; diag calls
|
|
|
|
:diag-cmds
|
|
|
|
:diag-cmds-clear
|
|
|
|
:diag-cmds-set-time
|
|
|
|
:diag-sys
|
|
|
|
|
2019-06-06 23:31:34 -05:00
|
|
|
;; file calls
|
|
|
|
:file-ls
|
|
|
|
|
|
|
|
;; files calls
|
|
|
|
:files-chcid
|
|
|
|
:files-cp
|
|
|
|
:files-flush
|
|
|
|
:files-ls
|
|
|
|
:files-mkdir
|
|
|
|
:files-mv
|
|
|
|
:files-read
|
|
|
|
:files-rm
|
|
|
|
:files-stat
|
2019-06-06 23:47:40 -05:00
|
|
|
:files-write
|
|
|
|
|
|
|
|
;; filestore calls
|
|
|
|
:filestore-dups
|
|
|
|
:filestore-ls
|
|
|
|
:filestore-verify
|
2019-06-07 00:12:39 -05:00
|
|
|
|
|
|
|
;; key calls
|
|
|
|
:key-gen
|
|
|
|
:key-list
|
|
|
|
:key-rename
|
|
|
|
:key-remove
|
2019-06-06 23:31:34 -05:00
|
|
|
|
2019-06-18 02:47:06 -05:00
|
|
|
;; log calls
|
|
|
|
:log-level
|
|
|
|
:log-ls
|
|
|
|
:log-tail
|
|
|
|
|
2019-06-18 02:57:12 -05:00
|
|
|
;; name calls
|
|
|
|
:name-publish
|
|
|
|
:name-pubsub-cancel
|
|
|
|
:name-pubsub-state
|
2019-06-18 03:04:19 -05:00
|
|
|
:name-pubsub-subs
|
|
|
|
:name-resolve
|
2019-06-18 02:57:12 -05:00
|
|
|
|
2019-06-18 03:22:59 -05:00
|
|
|
;; object calls
|
|
|
|
:object-data
|
|
|
|
:object-diff
|
|
|
|
:object-get
|
|
|
|
:object-links
|
|
|
|
:object-new
|
|
|
|
:object-patch-add-link
|
|
|
|
:object-patch-rm-link
|
|
|
|
:object-stat
|
|
|
|
;; absentees— :object-put, :object-set-data, :object-patch-append-data
|
|
|
|
|
2019-06-18 12:03:08 -05:00
|
|
|
;; p2p calls
|
|
|
|
:p2p-close
|
|
|
|
:p2p-listen
|
|
|
|
:p2p-ls
|
|
|
|
:p2p-stream-close
|
|
|
|
:p2p-stream-ls
|
|
|
|
|
2019-06-18 12:18:08 -05:00
|
|
|
;; pin calls
|
|
|
|
:pin-add
|
|
|
|
:pin-ls
|
|
|
|
:pin-rm
|
|
|
|
:pin-update
|
|
|
|
:pin-verify
|
|
|
|
|
2019-06-18 02:39:35 -05:00
|
|
|
;; pubsub calls
|
|
|
|
:pubsub-sub
|
|
|
|
:pubsub-sub-process
|
|
|
|
:pubsub-sub-read-char
|
|
|
|
:pubsub-sub-listen
|
|
|
|
:pubsub-sub-close
|
|
|
|
:pubsub-pub
|
|
|
|
:pubsub-ls
|
|
|
|
:pubsub-peers
|
|
|
|
|
2019-06-19 11:28:22 -05:00
|
|
|
;; refs calls
|
|
|
|
:refs
|
|
|
|
:refs-local
|
|
|
|
|
2019-06-19 11:40:47 -05:00
|
|
|
;; repo calls
|
|
|
|
:repo-fsck
|
|
|
|
:repo-gc
|
|
|
|
:repo-stat
|
|
|
|
:repo-verify
|
|
|
|
:repo-version
|
|
|
|
|
|
|
|
;; stats calls
|
|
|
|
:stats-bitswap
|
|
|
|
:stats-bw
|
|
|
|
:stats-repo
|
|
|
|
|
2019-06-19 11:56:35 -05:00
|
|
|
;; swarm calls
|
|
|
|
:swarm-addrs
|
|
|
|
:swarm-addrs-listen
|
|
|
|
:swarm-addrs-local
|
|
|
|
:swarm-connect
|
|
|
|
:swarm-disconnect
|
|
|
|
:swarm-filters
|
|
|
|
:swarm-filters-add
|
|
|
|
:swarm-filters-rm
|
|
|
|
:swarm-peers
|
|
|
|
|
2019-06-19 11:59:06 -05:00
|
|
|
;; urlstore calls
|
|
|
|
:urlstore-add
|
|
|
|
|
2019-06-06 19:48:18 -05:00
|
|
|
;; version calls
|
2019-05-24 00:08:19 -05:00
|
|
|
:version
|
2021-06-24 18:24:14 -05:00
|
|
|
:version-deps
|
|
|
|
#:with-files-write))
|