casa-client-0.0.1: Client for Casa
Safe HaskellNone
LanguageHaskell2010

Casa.Client

Description

 
Synopsis

Documentation

blobsSource :: (MonadThrow m, MonadResource m, MonadIO m) => SourceConfig -> ConduitT i (BlobKey, ByteString) m () Source #

Make a source of blobs from a URL. Throws PullException.

data SourceConfig Source #

Configuration for sourcing blobs from the server.

Constructors

SourceConfig 

Fields

blobsSink :: (MonadIO m, MonadThrow m, MonadUnliftIO m) => CasaRepoPrefix -> ConduitT () ByteString m () -> m () Source #

A sink to push blobs to the server. Throws PushException.

data CasaRepoPrefix Source #

The URL prefix for a casa repo. Commonly: https://casa.fpcomplete.com Parsers will strip out a trailing slash.

Instances

Instances details
Show CasaRepoPrefix Source # 
Instance details

Defined in Casa.Client

Methods

showsPrec :: Int -> CasaRepoPrefix -> ShowS

show :: CasaRepoPrefix -> String

showList :: [CasaRepoPrefix] -> ShowS

Lift CasaRepoPrefix Source # 
Instance details

Defined in Casa.Client

Methods

lift :: CasaRepoPrefix -> Q Exp #

FromJSON CasaRepoPrefix Source # 
Instance details

Defined in Casa.Client

parseCasaRepoPrefix :: String -> Either String CasaRepoPrefix Source #

Parse and normalize a Casa repo prefix.

thParserCasaRepo :: String -> Q Exp Source #

TH compile-time parser.

data PushException Source #

An exception from blob consuming/sending.

Instances

Instances details
Show PushException Source # 
Instance details

Defined in Casa.Client

Methods

showsPrec :: Int -> PushException -> ShowS

show :: PushException -> String

showList :: [PushException] -> ShowS

Exception PushException Source # 
Instance details

Defined in Casa.Client

data PullException Source #

An exception from blob consuming/sending.

Instances

Instances details
Show PullException Source # 
Instance details

Defined in Casa.Client

Methods

showsPrec :: Int -> PullException -> ShowS

show :: PullException -> String

showList :: [PullException] -> ShowS

Exception PullException Source # 
Instance details

Defined in Casa.Client