Copyright | Aleksandr Krupenkin 2016-2021 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
IPFS API types.
Synopsis
- type CatReturnType = Text
- type ReprovideReturnType = Text
- type GetReturnType = Text
- type BlockReturnType = Text
- type DagReturnType = Text
- type ObjectReturnType = Text
- type FilesReadType = Text
- data DirLink = DirLink {}
- data DirObj = DirObj {}
- data AddObj = AddObj {}
- data LsObj = LsObj {}
- data SwarmStreamObj = SwarmStreamObj {}
- data SwarmPeerObj = SwarmPeerObj {}
- data SwarmPeersObj = SwarmPeersObj {
- peers :: [SwarmPeerObj]
- data SwarmObj = SwarmObj {}
- data WantlistObj = WantlistObj {}
- data BitswapStatObj = BitswapStatObj {
- blocksReceived :: Int64
- blocksSent :: Int64
- dataReceived :: Int64
- dataSent :: Int64
- dupBlksReceived :: Int64
- dupDataReceived :: Int64
- messagesReceived :: Int64
- bitswapPeers :: [Text]
- provideBufLen :: Int
- wantlist :: [WantlistObj]
- data BitswapWLObj = BitswapWLObj {
- bitswapKeys :: [WantlistObj]
- data BitswapLedgerObj = BitswapLedgerObj {}
- data CidBasesObj = CidBasesObj {}
- data CidCodecsObj = CidCodecsObj {}
- data CidHashesObj = CidHashesObj {}
- data CidObj = CidObj {}
- data BlockObj = BlockObj {}
- data DagCidObj = DagCidObj {}
- data DagResolveObj = DagResolveObj {}
- data DagPutObj = DagPutObj {}
- data ConfigObj = ConfigObj {
- configKey :: Text
- configValue :: Text
- data ObjectLinkObj = ObjectLinkObj {}
- data ObjectObj = ObjectObj {}
- data ObjectLinksObj
- = WithLinks {
- objectHash :: Text
- objectLinks :: [ObjectLinkObj]
- | WithoutLinks {
- objectHash :: Text
- = WithLinks {
- data ObjectGetObj = ObjectGetObj {}
- data ObjectStatObj = ObjectStatObj {}
- data DiffObj = DiffObj {}
- data ObjectChangeObj = ObjectChangeObj {}
- data ObjectDiffObj = ObjectDiffObj {
- changes :: [ObjectChangeObj]
- data PinObj
- = WithoutProgress { }
- | WithProgress { }
- data BootstrapObj = BootstrapObj {
- bootstrapPeers :: [Text]
- data StatsBwObj = StatsBwObj {}
- data StatsRepoObj = StatsRepoObj {
- numObjects :: Int64
- repoPath :: Text
- repoSize :: Int64
- storageMax :: Int64
- repoVersion :: Text
- data VersionObj = VersionObj {}
- data IdObj = IdObj {
- addresses :: [Text]
- agentVersion :: Text
- id :: Text
- protocolVersion :: Text
- publicKey :: Text
- data DnsObj = DnsObj {}
- data PubsubObj = PubsubObj {
- pubsubStrings :: [Text]
- data LogLsObj = LogLsObj {
- logLsStrings :: [Text]
- data LogLevelObj = LogLevelObj {}
- data RepoVersionObj = RepoVersionObj {}
- data RepoFsckObj = RepoFsckObj {
- repoMessage :: Text
- data KeyDetailsObj = KeyDetailsObj {}
- data KeyObj = KeyObj {
- keys :: [KeyDetailsObj]
- data KeyRenameObj = KeyRenameObj {}
- data FilesStatObj = FilesStatObj {
- fileObjectHash :: Text
- objectSize :: Int
- cumulativeObjectSize :: Int
- blocks :: Int
- objectType :: Text
- data FilesEntryObj = FilesEntryObj {}
- data FilesLsObj = FilesLsObj {
- enteries :: [FilesEntryObj]
- data FilesFlushObj = FilesFlushObj {}
- data IpfsText
- data IpfsJSON
- type IpfsApi = ("cat" :> (Capture "arg" Text :> Get '[IpfsText] CatReturnType)) :<|> (("ls" :> (Capture "arg" Text :> Get '[JSON] LsObj)) :<|> (("get" :> (Capture "arg" Text :> Get '[IpfsText] GetReturnType)) :<|> (("swarm" :> ("peers" :> Get '[JSON] SwarmPeersObj)) :<|> (("swarm" :> ("connect" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj))) :<|> (("swarm" :> ("disconnect" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj))) :<|> (("swarm" :> ("filters" :> Get '[JSON] SwarmObj)) :<|> (("swarm" :> ("filters" :> ("add" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj)))) :<|> (("swarm" :> ("filters" :> ("rm" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj)))) :<|> (("bitswap" :> ("stat" :> Get '[JSON] BitswapStatObj)) :<|> (("bitswap" :> ("wantlist" :> Get '[JSON] BitswapWLObj)) :<|> (("bitswap" :> ("ledger" :> (Capture "peerId" Text :> Get '[JSON] BitswapLedgerObj))) :<|> (("bitswap" :> ("reprovide" :> Get '[IpfsText] ReprovideReturnType)) :<|> (("cid" :> ("bases" :> Get '[JSON] [CidBasesObj])) :<|> (("cid" :> ("codecs" :> Get '[JSON] [CidCodecsObj])) :<|> (("cid" :> ("hashes" :> Get '[JSON] [CidHashesObj])) :<|> (("cid" :> ("base32" :> (Capture "cid" Text :> Get '[JSON] CidObj))) :<|> (("cid" :> ("format" :> (Capture "cid" Text :> Get '[JSON] CidObj))) :<|> (("block" :> ("get" :> (Capture "key" Text :> Get '[IpfsText] BlockReturnType))) :<|> (("block" :> ("stat" :> (Capture "key" Text :> Get '[JSON] BlockObj))) :<|> (("dag" :> ("get" :> (Capture "ref" Text :> Get '[IpfsJSON] DagReturnType))) :<|> (("dag" :> ("resolve" :> (Capture "ref" Text :> Get '[JSON] DagResolveObj))) :<|> (("config" :> (Capture "ref" Text :> Get '[JSON] ConfigObj)) :<|> (("config" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ConfigObj))) :<|> (("object" :> ("data" :> (Capture "ref" Text :> Get '[IpfsText] ObjectReturnType))) :<|> (("object" :> ("new" :> Get '[JSON] ObjectObj)) :<|> (("object" :> ("links" :> (Capture "ref" Text :> Get '[JSON] ObjectLinksObj))) :<|> (("object" :> ("patch" :> ("add-link" :> (Capture "arg" Text :> (QueryParam "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ObjectLinksObj)))))) :<|> (("object" :> ("patch" :> ("rm-link" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ObjectLinksObj))))) :<|> (("object" :> ("get" :> (Capture "arg" Text :> Get '[JSON] ObjectGetObj))) :<|> (("object" :> ("diff" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ObjectDiffObj)))) :<|> (("object" :> ("stat" :> (Capture "arg" Text :> Get '[JSON] ObjectStatObj))) :<|> (("pin" :> ("add" :> (Capture "arg" Text :> Get '[JSON] PinObj))) :<|> (("pin" :> ("rm" :> (Capture "arg" Text :> Get '[JSON] PinObj))) :<|> (("bootstrap" :> ("add" :> (QueryParam "arg" Text :> Get '[JSON] BootstrapObj))) :<|> (("bootstrap" :> ("list" :> Get '[JSON] BootstrapObj)) :<|> (("bootstrap" :> ("rm" :> (QueryParam "arg" Text :> Get '[JSON] BootstrapObj))) :<|> (("stats" :> ("bw" :> Get '[JSON] StatsBwObj)) :<|> (("stats" :> ("repo" :> Get '[JSON] StatsRepoObj)) :<|> (("version" :> Get '[JSON] VersionObj) :<|> (("id" :> Get '[JSON] IdObj) :<|> (("id" :> (Capture "arg" Text :> Get '[JSON] IdObj)) :<|> (("dns" :> (Capture "arg" Text :> Get '[JSON] DnsObj)) :<|> (("pubsub" :> ("ls" :> Get '[JSON] PubsubObj)) :<|> (("pubsub" :> ("peers" :> Get '[JSON] PubsubObj)) :<|> (("pubsub" :> ("pub" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] NoContent)))) :<|> (("log" :> ("ls" :> Get '[JSON] LogLsObj)) :<|> (("log" :> ("level" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] LogLevelObj)))) :<|> (("repo" :> ("version" :> Get '[JSON] RepoVersionObj)) :<|> (("repo" :> ("fsck" :> Get '[JSON] RepoFsckObj)) :<|> (("key" :> ("gen" :> (Capture "arg" Text :> (QueryParam "type" Text :> Get '[JSON] KeyDetailsObj)))) :<|> (("key" :> ("list" :> Get '[JSON] KeyObj)) :<|> (("key" :> ("rename" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] KeyRenameObj)))) :<|> (("key" :> ("rm" :> (Capture "arg" Text :> Get '[JSON] KeyObj))) :<|> (("files" :> ("chcid" :> (QueryParam "arg" Text :> (QueryParam "cid-version" Int :> Get '[JSON] NoContent)))) :<|> (("files" :> ("cp" :> (QueryParam "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] NoContent)))) :<|> (("files" :> ("flush" :> (QueryParam "arg" Text :> Get '[JSON] FilesFlushObj))) :<|> (("files" :> ("ls" :> (QueryParam "arg" Text :> Get '[JSON] FilesLsObj))) :<|> (("files" :> ("mkdir" :> (QueryParam "arg" Text :> Get '[JSON] NoContent))) :<|> (("files" :> ("mv" :> (QueryParam "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] NoContent)))) :<|> (("files" :> ("read" :> (QueryParam "arg" Text :> Get '[IpfsText] FilesReadType))) :<|> (("files" :> ("rm" :> (QueryParam "arg" Text :> (QueryParam "recursive" Bool :> Get '[JSON] NoContent)))) :<|> (("files" :> ("stat" :> (QueryParam "arg" Text :> Get '[JSON] FilesStatObj))) :<|> ("shutdown" :> Get '[JSON] NoContent)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Documentation
type CatReturnType = Text Source #
type ReprovideReturnType = Text Source #
type GetReturnType = Text Source #
type BlockReturnType = Text Source #
type DagReturnType = Text Source #
type ObjectReturnType = Text Source #
type FilesReadType = Text Source #
data SwarmStreamObj Source #
Instances
Eq SwarmStreamObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: SwarmStreamObj -> SwarmStreamObj -> Bool # (/=) :: SwarmStreamObj -> SwarmStreamObj -> Bool # | |
Show SwarmStreamObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> SwarmStreamObj -> ShowS # show :: SwarmStreamObj -> String # showList :: [SwarmStreamObj] -> ShowS # | |
FromJSON SwarmStreamObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser SwarmStreamObj # parseJSONList :: Value -> Parser [SwarmStreamObj] # |
data SwarmPeerObj Source #
Instances
Eq SwarmPeerObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: SwarmPeerObj -> SwarmPeerObj -> Bool # (/=) :: SwarmPeerObj -> SwarmPeerObj -> Bool # | |
Show SwarmPeerObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> SwarmPeerObj -> ShowS # show :: SwarmPeerObj -> String # showList :: [SwarmPeerObj] -> ShowS # | |
FromJSON SwarmPeerObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser SwarmPeerObj # parseJSONList :: Value -> Parser [SwarmPeerObj] # |
data SwarmPeersObj Source #
Instances
Eq SwarmPeersObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: SwarmPeersObj -> SwarmPeersObj -> Bool # (/=) :: SwarmPeersObj -> SwarmPeersObj -> Bool # | |
Show SwarmPeersObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> SwarmPeersObj -> ShowS # show :: SwarmPeersObj -> String # showList :: [SwarmPeersObj] -> ShowS # | |
FromJSON SwarmPeersObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser SwarmPeersObj # parseJSONList :: Value -> Parser [SwarmPeersObj] # |
data WantlistObj Source #
Instances
Eq WantlistObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: WantlistObj -> WantlistObj -> Bool # (/=) :: WantlistObj -> WantlistObj -> Bool # | |
Show WantlistObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> WantlistObj -> ShowS # show :: WantlistObj -> String # showList :: [WantlistObj] -> ShowS # | |
FromJSON WantlistObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser WantlistObj # parseJSONList :: Value -> Parser [WantlistObj] # |
data BitswapStatObj Source #
BitswapStatObj | |
|
Instances
Eq BitswapStatObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: BitswapStatObj -> BitswapStatObj -> Bool # (/=) :: BitswapStatObj -> BitswapStatObj -> Bool # | |
Show BitswapStatObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> BitswapStatObj -> ShowS # show :: BitswapStatObj -> String # showList :: [BitswapStatObj] -> ShowS # | |
FromJSON BitswapStatObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser BitswapStatObj # parseJSONList :: Value -> Parser [BitswapStatObj] # |
data BitswapWLObj Source #
Instances
Eq BitswapWLObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: BitswapWLObj -> BitswapWLObj -> Bool # (/=) :: BitswapWLObj -> BitswapWLObj -> Bool # | |
Show BitswapWLObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> BitswapWLObj -> ShowS # show :: BitswapWLObj -> String # showList :: [BitswapWLObj] -> ShowS # | |
FromJSON BitswapWLObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser BitswapWLObj # parseJSONList :: Value -> Parser [BitswapWLObj] # |
data BitswapLedgerObj Source #
Instances
Eq BitswapLedgerObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: BitswapLedgerObj -> BitswapLedgerObj -> Bool # (/=) :: BitswapLedgerObj -> BitswapLedgerObj -> Bool # | |
Show BitswapLedgerObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> BitswapLedgerObj -> ShowS # show :: BitswapLedgerObj -> String # showList :: [BitswapLedgerObj] -> ShowS # | |
FromJSON BitswapLedgerObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser BitswapLedgerObj # parseJSONList :: Value -> Parser [BitswapLedgerObj] # |
data CidBasesObj Source #
Instances
Eq CidBasesObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: CidBasesObj -> CidBasesObj -> Bool # (/=) :: CidBasesObj -> CidBasesObj -> Bool # | |
Show CidBasesObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> CidBasesObj -> ShowS # show :: CidBasesObj -> String # showList :: [CidBasesObj] -> ShowS # | |
FromJSON CidBasesObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser CidBasesObj # parseJSONList :: Value -> Parser [CidBasesObj] # |
data CidCodecsObj Source #
Instances
Eq CidCodecsObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: CidCodecsObj -> CidCodecsObj -> Bool # (/=) :: CidCodecsObj -> CidCodecsObj -> Bool # | |
Show CidCodecsObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> CidCodecsObj -> ShowS # show :: CidCodecsObj -> String # showList :: [CidCodecsObj] -> ShowS # | |
FromJSON CidCodecsObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser CidCodecsObj # parseJSONList :: Value -> Parser [CidCodecsObj] # |
data CidHashesObj Source #
Instances
Eq CidHashesObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: CidHashesObj -> CidHashesObj -> Bool # (/=) :: CidHashesObj -> CidHashesObj -> Bool # | |
Show CidHashesObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> CidHashesObj -> ShowS # show :: CidHashesObj -> String # showList :: [CidHashesObj] -> ShowS # | |
FromJSON CidHashesObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser CidHashesObj # parseJSONList :: Value -> Parser [CidHashesObj] # |
data DagResolveObj Source #
Instances
Eq DagResolveObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: DagResolveObj -> DagResolveObj -> Bool # (/=) :: DagResolveObj -> DagResolveObj -> Bool # | |
Show DagResolveObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> DagResolveObj -> ShowS # show :: DagResolveObj -> String # showList :: [DagResolveObj] -> ShowS # | |
FromJSON DagResolveObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser DagResolveObj # parseJSONList :: Value -> Parser [DagResolveObj] # |
ConfigObj | |
|
data ObjectLinkObj Source #
Instances
Eq ObjectLinkObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: ObjectLinkObj -> ObjectLinkObj -> Bool # (/=) :: ObjectLinkObj -> ObjectLinkObj -> Bool # | |
Show ObjectLinkObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> ObjectLinkObj -> ShowS # show :: ObjectLinkObj -> String # showList :: [ObjectLinkObj] -> ShowS # | |
FromJSON ObjectLinkObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser ObjectLinkObj # parseJSONList :: Value -> Parser [ObjectLinkObj] # |
data ObjectLinksObj Source #
Instances
Eq ObjectLinksObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: ObjectLinksObj -> ObjectLinksObj -> Bool # (/=) :: ObjectLinksObj -> ObjectLinksObj -> Bool # | |
Show ObjectLinksObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> ObjectLinksObj -> ShowS # show :: ObjectLinksObj -> String # showList :: [ObjectLinksObj] -> ShowS # | |
FromJSON ObjectLinksObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser ObjectLinksObj # parseJSONList :: Value -> Parser [ObjectLinksObj] # |
data ObjectGetObj Source #
Instances
Eq ObjectGetObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: ObjectGetObj -> ObjectGetObj -> Bool # (/=) :: ObjectGetObj -> ObjectGetObj -> Bool # | |
Show ObjectGetObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> ObjectGetObj -> ShowS # show :: ObjectGetObj -> String # showList :: [ObjectGetObj] -> ShowS # | |
FromJSON ObjectGetObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser ObjectGetObj # parseJSONList :: Value -> Parser [ObjectGetObj] # |
data ObjectStatObj Source #
Instances
Eq ObjectStatObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: ObjectStatObj -> ObjectStatObj -> Bool # (/=) :: ObjectStatObj -> ObjectStatObj -> Bool # | |
Show ObjectStatObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> ObjectStatObj -> ShowS # show :: ObjectStatObj -> String # showList :: [ObjectStatObj] -> ShowS # | |
FromJSON ObjectStatObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser ObjectStatObj # parseJSONList :: Value -> Parser [ObjectStatObj] # |
data ObjectChangeObj Source #
Instances
Eq ObjectChangeObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: ObjectChangeObj -> ObjectChangeObj -> Bool # (/=) :: ObjectChangeObj -> ObjectChangeObj -> Bool # | |
Show ObjectChangeObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> ObjectChangeObj -> ShowS # show :: ObjectChangeObj -> String # showList :: [ObjectChangeObj] -> ShowS # | |
FromJSON ObjectChangeObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser ObjectChangeObj # parseJSONList :: Value -> Parser [ObjectChangeObj] # |
data ObjectDiffObj Source #
Instances
Eq ObjectDiffObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: ObjectDiffObj -> ObjectDiffObj -> Bool # (/=) :: ObjectDiffObj -> ObjectDiffObj -> Bool # | |
Show ObjectDiffObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> ObjectDiffObj -> ShowS # show :: ObjectDiffObj -> String # showList :: [ObjectDiffObj] -> ShowS # | |
FromJSON ObjectDiffObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser ObjectDiffObj # parseJSONList :: Value -> Parser [ObjectDiffObj] # |
data BootstrapObj Source #
Instances
Eq BootstrapObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: BootstrapObj -> BootstrapObj -> Bool # (/=) :: BootstrapObj -> BootstrapObj -> Bool # | |
Show BootstrapObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> BootstrapObj -> ShowS # show :: BootstrapObj -> String # showList :: [BootstrapObj] -> ShowS # | |
FromJSON BootstrapObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser BootstrapObj # parseJSONList :: Value -> Parser [BootstrapObj] # |
data StatsBwObj Source #
Instances
Eq StatsBwObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: StatsBwObj -> StatsBwObj -> Bool # (/=) :: StatsBwObj -> StatsBwObj -> Bool # | |
Show StatsBwObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> StatsBwObj -> ShowS # show :: StatsBwObj -> String # showList :: [StatsBwObj] -> ShowS # | |
FromJSON StatsBwObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser StatsBwObj # parseJSONList :: Value -> Parser [StatsBwObj] # |
data StatsRepoObj Source #
StatsRepoObj | |
|
Instances
Eq StatsRepoObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: StatsRepoObj -> StatsRepoObj -> Bool # (/=) :: StatsRepoObj -> StatsRepoObj -> Bool # | |
Show StatsRepoObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> StatsRepoObj -> ShowS # show :: StatsRepoObj -> String # showList :: [StatsRepoObj] -> ShowS # | |
FromJSON StatsRepoObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser StatsRepoObj # parseJSONList :: Value -> Parser [StatsRepoObj] # |
data VersionObj Source #
Instances
Eq VersionObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: VersionObj -> VersionObj -> Bool # (/=) :: VersionObj -> VersionObj -> Bool # | |
Show VersionObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> VersionObj -> ShowS # show :: VersionObj -> String # showList :: [VersionObj] -> ShowS # | |
FromJSON VersionObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser VersionObj # parseJSONList :: Value -> Parser [VersionObj] # |
PubsubObj | |
|
LogLsObj | |
|
data LogLevelObj Source #
Instances
Eq LogLevelObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: LogLevelObj -> LogLevelObj -> Bool # (/=) :: LogLevelObj -> LogLevelObj -> Bool # | |
Show LogLevelObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> LogLevelObj -> ShowS # show :: LogLevelObj -> String # showList :: [LogLevelObj] -> ShowS # | |
FromJSON LogLevelObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser LogLevelObj # parseJSONList :: Value -> Parser [LogLevelObj] # |
data RepoVersionObj Source #
Instances
Eq RepoVersionObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: RepoVersionObj -> RepoVersionObj -> Bool # (/=) :: RepoVersionObj -> RepoVersionObj -> Bool # | |
Show RepoVersionObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> RepoVersionObj -> ShowS # show :: RepoVersionObj -> String # showList :: [RepoVersionObj] -> ShowS # | |
FromJSON RepoVersionObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser RepoVersionObj # parseJSONList :: Value -> Parser [RepoVersionObj] # |
data RepoFsckObj Source #
Instances
Eq RepoFsckObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: RepoFsckObj -> RepoFsckObj -> Bool # (/=) :: RepoFsckObj -> RepoFsckObj -> Bool # | |
Show RepoFsckObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> RepoFsckObj -> ShowS # show :: RepoFsckObj -> String # showList :: [RepoFsckObj] -> ShowS # | |
FromJSON RepoFsckObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser RepoFsckObj # parseJSONList :: Value -> Parser [RepoFsckObj] # |
data KeyDetailsObj Source #
Instances
Eq KeyDetailsObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: KeyDetailsObj -> KeyDetailsObj -> Bool # (/=) :: KeyDetailsObj -> KeyDetailsObj -> Bool # | |
Show KeyDetailsObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> KeyDetailsObj -> ShowS # show :: KeyDetailsObj -> String # showList :: [KeyDetailsObj] -> ShowS # | |
FromJSON KeyDetailsObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser KeyDetailsObj # parseJSONList :: Value -> Parser [KeyDetailsObj] # |
KeyObj | |
|
data KeyRenameObj Source #
Instances
Eq KeyRenameObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: KeyRenameObj -> KeyRenameObj -> Bool # (/=) :: KeyRenameObj -> KeyRenameObj -> Bool # | |
Show KeyRenameObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> KeyRenameObj -> ShowS # show :: KeyRenameObj -> String # showList :: [KeyRenameObj] -> ShowS # | |
FromJSON KeyRenameObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser KeyRenameObj # parseJSONList :: Value -> Parser [KeyRenameObj] # |
data FilesStatObj Source #
FilesStatObj | |
|
Instances
Eq FilesStatObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: FilesStatObj -> FilesStatObj -> Bool # (/=) :: FilesStatObj -> FilesStatObj -> Bool # | |
Show FilesStatObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> FilesStatObj -> ShowS # show :: FilesStatObj -> String # showList :: [FilesStatObj] -> ShowS # | |
FromJSON FilesStatObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser FilesStatObj # parseJSONList :: Value -> Parser [FilesStatObj] # |
data FilesEntryObj Source #
Instances
Eq FilesEntryObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: FilesEntryObj -> FilesEntryObj -> Bool # (/=) :: FilesEntryObj -> FilesEntryObj -> Bool # | |
Show FilesEntryObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> FilesEntryObj -> ShowS # show :: FilesEntryObj -> String # showList :: [FilesEntryObj] -> ShowS # | |
FromJSON FilesEntryObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser FilesEntryObj # parseJSONList :: Value -> Parser [FilesEntryObj] # |
data FilesLsObj Source #
Instances
Eq FilesLsObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: FilesLsObj -> FilesLsObj -> Bool # (/=) :: FilesLsObj -> FilesLsObj -> Bool # | |
Show FilesLsObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> FilesLsObj -> ShowS # show :: FilesLsObj -> String # showList :: [FilesLsObj] -> ShowS # | |
FromJSON FilesLsObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser FilesLsObj # parseJSONList :: Value -> Parser [FilesLsObj] # |
data FilesFlushObj Source #
Instances
Eq FilesFlushObj Source # | |
Defined in Network.Ipfs.Api.Types (==) :: FilesFlushObj -> FilesFlushObj -> Bool # (/=) :: FilesFlushObj -> FilesFlushObj -> Bool # | |
Show FilesFlushObj Source # | |
Defined in Network.Ipfs.Api.Types showsPrec :: Int -> FilesFlushObj -> ShowS # show :: FilesFlushObj -> String # showList :: [FilesFlushObj] -> ShowS # | |
FromJSON FilesFlushObj Source # | |
Defined in Network.Ipfs.Api.Types parseJSON :: Value -> Parser FilesFlushObj # parseJSONList :: Value -> Parser [FilesFlushObj] # |
Defining a content type same as PlainText without charset
Instances
Accept IpfsText Source # | |
Defined in Network.Ipfs.Api.Types | |
MimeUnrender IpfsText Text Source # | left show . TextS.decodeUtf8' . toStrict |
Defined in Network.Ipfs.Api.Types mimeUnrender :: Proxy IpfsText -> ByteString -> Either String Text # mimeUnrenderWithType :: Proxy IpfsText -> MediaType -> ByteString -> Either String Text # |
Defining a content type same as IpfsJSON
Instances
Accept IpfsJSON Source # | |
Defined in Network.Ipfs.Api.Types | |
MimeUnrender IpfsJSON Text Source # | left show . TextS.decodeUtf8' . toStrict |
Defined in Network.Ipfs.Api.Types mimeUnrender :: Proxy IpfsJSON -> ByteString -> Either String Text # mimeUnrenderWithType :: Proxy IpfsJSON -> MediaType -> ByteString -> Either String Text # |
type IpfsApi = ("cat" :> (Capture "arg" Text :> Get '[IpfsText] CatReturnType)) :<|> (("ls" :> (Capture "arg" Text :> Get '[JSON] LsObj)) :<|> (("get" :> (Capture "arg" Text :> Get '[IpfsText] GetReturnType)) :<|> (("swarm" :> ("peers" :> Get '[JSON] SwarmPeersObj)) :<|> (("swarm" :> ("connect" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj))) :<|> (("swarm" :> ("disconnect" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj))) :<|> (("swarm" :> ("filters" :> Get '[JSON] SwarmObj)) :<|> (("swarm" :> ("filters" :> ("add" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj)))) :<|> (("swarm" :> ("filters" :> ("rm" :> (QueryParam "arg" Text :> Get '[JSON] SwarmObj)))) :<|> (("bitswap" :> ("stat" :> Get '[JSON] BitswapStatObj)) :<|> (("bitswap" :> ("wantlist" :> Get '[JSON] BitswapWLObj)) :<|> (("bitswap" :> ("ledger" :> (Capture "peerId" Text :> Get '[JSON] BitswapLedgerObj))) :<|> (("bitswap" :> ("reprovide" :> Get '[IpfsText] ReprovideReturnType)) :<|> (("cid" :> ("bases" :> Get '[JSON] [CidBasesObj])) :<|> (("cid" :> ("codecs" :> Get '[JSON] [CidCodecsObj])) :<|> (("cid" :> ("hashes" :> Get '[JSON] [CidHashesObj])) :<|> (("cid" :> ("base32" :> (Capture "cid" Text :> Get '[JSON] CidObj))) :<|> (("cid" :> ("format" :> (Capture "cid" Text :> Get '[JSON] CidObj))) :<|> (("block" :> ("get" :> (Capture "key" Text :> Get '[IpfsText] BlockReturnType))) :<|> (("block" :> ("stat" :> (Capture "key" Text :> Get '[JSON] BlockObj))) :<|> (("dag" :> ("get" :> (Capture "ref" Text :> Get '[IpfsJSON] DagReturnType))) :<|> (("dag" :> ("resolve" :> (Capture "ref" Text :> Get '[JSON] DagResolveObj))) :<|> (("config" :> (Capture "ref" Text :> Get '[JSON] ConfigObj)) :<|> (("config" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ConfigObj))) :<|> (("object" :> ("data" :> (Capture "ref" Text :> Get '[IpfsText] ObjectReturnType))) :<|> (("object" :> ("new" :> Get '[JSON] ObjectObj)) :<|> (("object" :> ("links" :> (Capture "ref" Text :> Get '[JSON] ObjectLinksObj))) :<|> (("object" :> ("patch" :> ("add-link" :> (Capture "arg" Text :> (QueryParam "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ObjectLinksObj)))))) :<|> (("object" :> ("patch" :> ("rm-link" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ObjectLinksObj))))) :<|> (("object" :> ("get" :> (Capture "arg" Text :> Get '[JSON] ObjectGetObj))) :<|> (("object" :> ("diff" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] ObjectDiffObj)))) :<|> (("object" :> ("stat" :> (Capture "arg" Text :> Get '[JSON] ObjectStatObj))) :<|> (("pin" :> ("add" :> (Capture "arg" Text :> Get '[JSON] PinObj))) :<|> (("pin" :> ("rm" :> (Capture "arg" Text :> Get '[JSON] PinObj))) :<|> (("bootstrap" :> ("add" :> (QueryParam "arg" Text :> Get '[JSON] BootstrapObj))) :<|> (("bootstrap" :> ("list" :> Get '[JSON] BootstrapObj)) :<|> (("bootstrap" :> ("rm" :> (QueryParam "arg" Text :> Get '[JSON] BootstrapObj))) :<|> (("stats" :> ("bw" :> Get '[JSON] StatsBwObj)) :<|> (("stats" :> ("repo" :> Get '[JSON] StatsRepoObj)) :<|> (("version" :> Get '[JSON] VersionObj) :<|> (("id" :> Get '[JSON] IdObj) :<|> (("id" :> (Capture "arg" Text :> Get '[JSON] IdObj)) :<|> (("dns" :> (Capture "arg" Text :> Get '[JSON] DnsObj)) :<|> (("pubsub" :> ("ls" :> Get '[JSON] PubsubObj)) :<|> (("pubsub" :> ("peers" :> Get '[JSON] PubsubObj)) :<|> (("pubsub" :> ("pub" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] NoContent)))) :<|> (("log" :> ("ls" :> Get '[JSON] LogLsObj)) :<|> (("log" :> ("level" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] LogLevelObj)))) :<|> (("repo" :> ("version" :> Get '[JSON] RepoVersionObj)) :<|> (("repo" :> ("fsck" :> Get '[JSON] RepoFsckObj)) :<|> (("key" :> ("gen" :> (Capture "arg" Text :> (QueryParam "type" Text :> Get '[JSON] KeyDetailsObj)))) :<|> (("key" :> ("list" :> Get '[JSON] KeyObj)) :<|> (("key" :> ("rename" :> (Capture "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] KeyRenameObj)))) :<|> (("key" :> ("rm" :> (Capture "arg" Text :> Get '[JSON] KeyObj))) :<|> (("files" :> ("chcid" :> (QueryParam "arg" Text :> (QueryParam "cid-version" Int :> Get '[JSON] NoContent)))) :<|> (("files" :> ("cp" :> (QueryParam "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] NoContent)))) :<|> (("files" :> ("flush" :> (QueryParam "arg" Text :> Get '[JSON] FilesFlushObj))) :<|> (("files" :> ("ls" :> (QueryParam "arg" Text :> Get '[JSON] FilesLsObj))) :<|> (("files" :> ("mkdir" :> (QueryParam "arg" Text :> Get '[JSON] NoContent))) :<|> (("files" :> ("mv" :> (QueryParam "arg" Text :> (QueryParam "arg" Text :> Get '[JSON] NoContent)))) :<|> (("files" :> ("read" :> (QueryParam "arg" Text :> Get '[IpfsText] FilesReadType))) :<|> (("files" :> ("rm" :> (QueryParam "arg" Text :> (QueryParam "recursive" Bool :> Get '[JSON] NoContent)))) :<|> (("files" :> ("stat" :> (QueryParam "arg" Text :> Get '[JSON] FilesStatObj))) :<|> ("shutdown" :> Get '[JSON] NoContent))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) Source #