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

Casa.Client

Description

Types and functions for a client for Casa (Content-addressable Storage Archive).

Synopsis

Documentation

blobsSource :: forall (m :: Type -> Type) i. (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 repository, commonly https://casa.stackage.org. Parsers will strip out a trailing slash.

parseCasaRepoPrefix :: String -> Either String CasaRepoPrefix Source #

Parse and normalize a Casa repo prefix.

thParserCasaRepo :: String -> Q Exp Source #

TH compile-time parser.