gitlib-s3-3.0.0: Gitlib repository backend for storing Git objects in Amazon S3

Safe HaskellNone

Git.S3

Synopsis

Documentation

addS3BackendSource

Arguments

:: (MonadS3 m, MonadUnsafeIO m, MonadThrow m) 
=> LgRepo 
-> Text

bucket

-> Text

prefix

-> Text

access key

-> Text

secret key

-> Maybe Manager 
-> Maybe Text

mock address

-> LogLevel 
-> FilePath 
-> BackendCallbacks

callbacks

-> m LgRepo 

Given a repository object obtained from Libgit2, add an S3 backend to it, making it the primary store for objects associated with that repository.

mockGetBucket :: MonadS3 m => S3MockService -> Text -> Text -> m (Maybe [Text])Source

mockHeadObject :: MonadS3 m => S3MockService -> Text -> Text -> m (Maybe Bool)Source

mockPutObject :: MonadS3 m => S3MockService -> Text -> Text -> Int -> ByteString -> m (Maybe (Either Text ()))Source