riak-0.7.0.2: A Haskell client for the Riak decentralized data store

Portabilityportable
Stabilityexperimental
MaintainerNathan Hunter <nhunter@janrain.com>
Safe HaskellNone

Network.Riak.Request

Contents

Description

Smart constructors for Riak types. These functions correctly URL-escape bucket, key, and link names. You should thus use them in preference to the raw data constructors.

Synopsis

Connection management

ping :: PingRequestSource

Create a ping request.

getClientID :: GetClientIDRequestSource

Create a client-ID request.

getServerInfo :: GetServerInfoRequestSource

Create a server-info request.

Data management

get :: Bucket -> Key -> R -> GetRequestSource

Create a get request. The bucket and key names are URL-escaped.

put :: Bucket -> Key -> Maybe VClock -> Content -> W -> DW -> Bool -> PutRequestSource

Create a put request. The bucket and key names are URL-escaped. Any Link values inside the Content are assumed to have been constructed with the link function, and hence not escaped.

delete :: Bucket -> Key -> RW -> DeleteRequestSource

Create a delete request. The bucket and key names are URL-escaped.

Metadata

link :: Bucket -> Key -> Tag -> LinkSource

Create a link. The bucket and key names are URL-escaped.

listBuckets :: ListBucketsRequestSource

Create a list-buckets request.

listKeys :: Bucket -> ListKeysRequestSource

Create a list-keys request. The bucket name is URL-escaped.

getBucket :: Bucket -> GetBucketRequestSource

Create a get-bucket request. The bucket name is URL-escaped.

setBucket :: Bucket -> BucketProps -> SetBucketRequestSource

Create a set-bucket request. The bucket name is URL-escaped.

Map/reduce

mapReduce :: Job -> MapReduceRequestSource

Create a map-reduce request.