Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Api calls with object
prefix.
Synopsis
- object :: MonadIO m => Text -> IpfsT m ObjectReturnType
- new :: MonadIO m => IpfsT m ObjectObj
- getLinks :: MonadIO m => Text -> IpfsT m ObjectLinksObj
- addLink :: MonadIO m => Text -> Text -> Text -> IpfsT m ObjectLinksObj
- rmLink :: MonadIO m => Text -> Text -> IpfsT m ObjectLinksObj
- appendData :: MonadIO m => Text -> Text -> IpfsT m (Maybe ObjectLinksObj)
- setData :: MonadIO m => Text -> Text -> IpfsT m (Maybe ObjectLinksObj)
- get :: MonadIO m => Text -> IpfsT m ObjectGetObj
- diff :: MonadIO m => Text -> Text -> IpfsT m ObjectDiffObj
- put :: MonadIO m => Text -> IpfsT m (Maybe ObjectObj)
- objectStat :: MonadIO m => Text -> IpfsT m ObjectStatObj
Documentation
object :: MonadIO m => Text -> IpfsT m ObjectReturnType Source #
Output the raw bytes of an IPFS object.
getLinks :: MonadIO m => Text -> IpfsT m ObjectLinksObj Source #
Output the links pointed to by the specified object.
addLink :: MonadIO m => Text -> Text -> Text -> IpfsT m ObjectLinksObj Source #
Add a Merkle-link to the given object and return the hash of the result.
rmLink :: MonadIO m => Text -> Text -> IpfsT m ObjectLinksObj Source #
Remove a Merkle-link from the given object and return the hash of the result.
appendData :: MonadIO m => Text -> Text -> IpfsT m (Maybe ObjectLinksObj) Source #
Append data to what already exists in the data segment in the given object.
setData :: MonadIO m => Text -> Text -> IpfsT m (Maybe ObjectLinksObj) Source #
Set the data field of an IPFS object.
get :: MonadIO m => Text -> IpfsT m ObjectGetObj Source #
Get and serialize the DAG node named by key.
diff :: MonadIO m => Text -> Text -> IpfsT m ObjectDiffObj Source #
'Display the diff between two ipfs objects.
put :: MonadIO m => Text -> IpfsT m (Maybe ObjectObj) Source #
Store input as a DAG object, print its key.
objectStat :: MonadIO m => Text -> IpfsT m ObjectStatObj Source #
Get stats for the DAG node named by key.