ipfs-1.4.1: Access IPFS locally and remotely
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.IPFS.Types

Description

Types related to IPFS

Synopsis

Documentation

newtype BinPath Source #

Path to the IPFS binary

Constructors

BinPath 

Fields

Instances

Instances details
FromJSON BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

IsString BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

Methods

fromString :: String -> BinPath #

Generic BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

Associated Types

type Rep BinPath :: Type -> Type #

Methods

from :: BinPath -> Rep BinPath x #

to :: Rep BinPath x -> BinPath #

Show BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

FromEnv BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

Eq BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

Methods

(==) :: BinPath -> BinPath -> Bool #

(/=) :: BinPath -> BinPath -> Bool #

Display BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

type Rep BinPath Source # 
Instance details

Defined in Network.IPFS.BinPath.Types

type Rep BinPath = D1 ('MetaData "BinPath" "Network.IPFS.BinPath.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'True) (C1 ('MetaCons "BinPath" 'PrefixI 'True) (S1 ('MetaSel ('Just "getBinPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath)))

newtype CID Source #

Constructors

CID 

Fields

Instances

Instances details
FromJSON CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

ToJSON CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

IsString CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Methods

fromString :: String -> CID #

Generic CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Associated Types

type Rep CID :: Type -> Type #

Methods

from :: CID -> Rep CID x #

to :: Rep CID x -> CID #

Read CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Show CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Methods

showsPrec :: Int -> CID -> ShowS #

show :: CID -> String #

showList :: [CID] -> ShowS #

Eq CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Methods

(==) :: CID -> CID -> Bool #

(/=) :: CID -> CID -> Bool #

Ord CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Methods

compare :: CID -> CID -> Ordering #

(<) :: CID -> CID -> Bool #

(<=) :: CID -> CID -> Bool #

(>) :: CID -> CID -> Bool #

(>=) :: CID -> CID -> Bool #

max :: CID -> CID -> CID #

min :: CID -> CID -> CID #

FromHttpApiData CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

ToHttpApiData CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Display CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

ToParamSchema CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy CID -> ParamSchema t #

ToSchema CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

MimeRender OctetStream CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

MimeRender PlainText CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

MimeUnrender PlainText CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

MimeUnrender PlainText [CID] Source # 
Instance details

Defined in Network.IPFS.CID.Types

type Rep CID Source # 
Instance details

Defined in Network.IPFS.CID.Types

type Rep CID = D1 ('MetaData "CID" "Network.IPFS.CID.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'True) (C1 ('MetaCons "CID" 'PrefixI 'True) (S1 ('MetaSel ('Just "unaddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

mkCID :: Text -> CID Source #

Smart constructor for CID

newtype Name Source #

Constructors

Name 

Fields

Instances

Instances details
FromJSON Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

ToJSON Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

IsString Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

Methods

fromString :: String -> Name #

Generic Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

Associated Types

type Rep Name :: Type -> Type #

Methods

from :: Name -> Rep Name x #

to :: Rep Name x -> Name #

Show Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

Eq Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

Methods

(==) :: Name -> Name -> Bool #

(/=) :: Name -> Name -> Bool #

Ord Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

Methods

compare :: Name -> Name -> Ordering #

(<) :: Name -> Name -> Bool #

(<=) :: Name -> Name -> Bool #

(>) :: Name -> Name -> Bool #

(>=) :: Name -> Name -> Bool #

max :: Name -> Name -> Name #

min :: Name -> Name -> Name #

FromHttpApiData Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

Display Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

ToParamSchema Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy Name -> ParamSchema t #

ToSchema Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

type Rep Name Source # 
Instance details

Defined in Network.IPFS.Name.Types

type Rep Name = D1 ('MetaData "Name" "Network.IPFS.Name.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'True) (C1 ('MetaCons "Name" 'PrefixI 'True) (S1 ('MetaSel ('Just "unName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))

newtype Peer Source #

Constructors

Peer 

Fields

Instances

Instances details
FromJSON Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

ToJSON Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

IsString Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

Methods

fromString :: String -> Peer #

Show Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

Methods

showsPrec :: Int -> Peer -> ShowS #

show :: Peer -> String #

showList :: [Peer] -> ShowS #

Eq Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

Methods

(==) :: Peer -> Peer -> Bool #

(/=) :: Peer -> Peer -> Bool #

Display Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

ToSchema Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

MimeRender OctetStream Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

MimeRender PlainText Peer Source # 
Instance details

Defined in Network.IPFS.Peer.Types

newtype Path Source #

CID path

Exmaple

"QmcaHAFzUPRCRaUK12dC6YyhcqEEtdfg94XrPwgCxZ1ihD/myfile.txt"

Constructors

Path 

Fields

Instances

Instances details
IsString Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

Methods

fromString :: String -> Path #

Generic Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

Associated Types

type Rep Path :: Type -> Type #

Methods

from :: Path -> Rep Path x #

to :: Rep Path x -> Path #

Show Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

Eq Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

Methods

(==) :: Path -> Path -> Bool #

(/=) :: Path -> Path -> Bool #

Ord Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

Methods

compare :: Path -> Path -> Ordering #

(<) :: Path -> Path -> Bool #

(<=) :: Path -> Path -> Bool #

(>) :: Path -> Path -> Bool #

(>=) :: Path -> Path -> Bool #

max :: Path -> Path -> Path #

min :: Path -> Path -> Path #

ToHttpApiData Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

ToSchema Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

MimeRender OctetStream Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

MimeRender PlainText Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

type Rep Path Source # 
Instance details

Defined in Network.IPFS.Path.Types

type Rep Path = D1 ('MetaData "Path" "Network.IPFS.Path.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'True) (C1 ('MetaCons "Path" 'PrefixI 'True) (S1 ('MetaSel ('Just "unpath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data SparseTree Source #

Directory structure for CIDs and other identifiers

Examples:

Content "abcdef"
show $ Directory [(Key "abcdef", Stub "myfile.txt")])]

"abcdef/myfile.txt"

Instances

Instances details
ToJSON SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Generic SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Associated Types

type Rep SparseTree :: Type -> Type #

Show SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Eq SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Display SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

ToSchema SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Display (Map Tag SparseTree) Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

type Rep SparseTree Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

data Tag Source #

Constructors

Key Name 
Hash CID 

Instances

Instances details
FromJSON Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

FromJSONKey Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

ToJSON Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

ToJSONKey Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Generic Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Associated Types

type Rep Tag :: Type -> Type #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

Show Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Eq Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Ord Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Methods

compare :: Tag -> Tag -> Ordering #

(<) :: Tag -> Tag -> Bool #

(<=) :: Tag -> Tag -> Bool #

(>) :: Tag -> Tag -> Bool #

(>=) :: Tag -> Tag -> Bool #

max :: Tag -> Tag -> Tag #

min :: Tag -> Tag -> Tag #

FromHttpApiData Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Display Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

ToSchema Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

Display (Map Tag SparseTree) Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

type Rep Tag Source # 
Instance details

Defined in Network.IPFS.SparseTree.Types

type Rep Tag = D1 ('MetaData "Tag" "Network.IPFS.SparseTree.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'False) (C1 ('MetaCons "Key" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name)) :+: C1 ('MetaCons "Hash" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CID)))

newtype Timeout Source #

Constructors

Timeout 

Fields

Instances

Instances details
FromJSON Timeout Source # 
Instance details

Defined in Network.IPFS.Timeout.Types

Generic Timeout Source # 
Instance details

Defined in Network.IPFS.Timeout.Types

Associated Types

type Rep Timeout :: Type -> Type #

Methods

from :: Timeout -> Rep Timeout x #

to :: Rep Timeout x -> Timeout #

Num Timeout Source # 
Instance details

Defined in Network.IPFS.Timeout.Types

Show Timeout Source # 
Instance details

Defined in Network.IPFS.Timeout.Types

FromEnv Timeout Source # 
Instance details

Defined in Network.IPFS.Timeout.Types

Eq Timeout Source # 
Instance details

Defined in Network.IPFS.Timeout.Types

Methods

(==) :: Timeout -> Timeout -> Bool #

(/=) :: Timeout -> Timeout -> Bool #

type Rep Timeout Source # 
Instance details

Defined in Network.IPFS.Timeout.Types

type Rep Timeout = D1 ('MetaData "Timeout" "Network.IPFS.Timeout.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'True) (C1 ('MetaCons "Timeout" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))

newtype URL Source #

IPFS client URL

Constructors

URL 

Fields

Instances

Instances details
FromJSON URL Source # 
Instance details

Defined in Network.IPFS.URL.Types

Generic URL Source # 
Instance details

Defined in Network.IPFS.URL.Types

Associated Types

type Rep URL :: Type -> Type #

Methods

from :: URL -> Rep URL x #

to :: Rep URL x -> URL #

Show URL Source # 
Instance details

Defined in Network.IPFS.URL.Types

Methods

showsPrec :: Int -> URL -> ShowS #

show :: URL -> String #

showList :: [URL] -> ShowS #

Eq URL Source # 
Instance details

Defined in Network.IPFS.URL.Types

Methods

(==) :: URL -> URL -> Bool #

(/=) :: URL -> URL -> Bool #

type Rep URL Source # 
Instance details

Defined in Network.IPFS.URL.Types

type Rep URL = D1 ('MetaData "URL" "Network.IPFS.URL.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'True) (C1 ('MetaCons "URL" 'PrefixI 'True) (S1 ('MetaSel ('Just "getURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BaseUrl)))

newtype Gateway Source #

Type safety wrapper for IPFS Gateway Used as cname value for DNS updates

Constructors

Gateway 

Fields

Instances

Instances details
FromJSON Gateway Source # 
Instance details

Defined in Network.IPFS.Gateway.Types

IsString Gateway Source # 
Instance details

Defined in Network.IPFS.Gateway.Types

Methods

fromString :: String -> Gateway #

Generic Gateway Source # 
Instance details

Defined in Network.IPFS.Gateway.Types

Associated Types

type Rep Gateway :: Type -> Type #

Methods

from :: Gateway -> Rep Gateway x #

to :: Rep Gateway x -> Gateway #

Show Gateway Source # 
Instance details

Defined in Network.IPFS.Gateway.Types

Eq Gateway Source # 
Instance details

Defined in Network.IPFS.Gateway.Types

Methods

(==) :: Gateway -> Gateway -> Bool #

(/=) :: Gateway -> Gateway -> Bool #

ToSchema Gateway Source # 
Instance details

Defined in Network.IPFS.Gateway.Types

type Rep Gateway Source # 
Instance details

Defined in Network.IPFS.Gateway.Types

type Rep Gateway = D1 ('MetaData "Gateway" "Network.IPFS.Gateway.Types" "ipfs-1.4.1-XZo7VmJWq1Gx4k7NhZfBV" 'True) (C1 ('MetaCons "Gateway" 'PrefixI 'True) (S1 ('MetaSel ('Just "getGateway") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data ErrorBody Source #

Constructors

ErrorBody 

Fields

Instances

Instances details
FromJSON ErrorBody Source # 
Instance details

Defined in Network.IPFS.Client.Error.Types

newtype Bytes Source #

Constructors

Bytes 

Fields

Instances

Instances details
FromJSON Bytes Source # 
Instance details

Defined in Network.IPFS.Bytes.Types

Show Bytes Source # 
Instance details

Defined in Network.IPFS.Bytes.Types

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

Eq Bytes Source # 
Instance details

Defined in Network.IPFS.Bytes.Types

Methods

(==) :: Bytes -> Bytes -> Bool #

(/=) :: Bytes -> Bytes -> Bool #