Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- repositories :: MonadIO m => Project -> GitLab m [Repository]
- repositories' :: MonadIO m => Int -> GitLab m (Either Status [Repository])
- getFileArchive :: MonadIO m => Project -> ArchiveFormat -> FilePath -> GitLab m (Either Status ())
- getFileArchiveBS :: MonadIO m => Project -> ArchiveFormat -> GitLab m (Either Status ByteString)
- getFileArchive' :: MonadIO m => Int -> ArchiveFormat -> FilePath -> GitLab m (Either Status ())
- getFileArchiveBS' :: MonadIO m => Int -> ArchiveFormat -> GitLab m (Either Status ByteString)
Documentation
:: MonadIO m | |
=> Project | the project |
-> GitLab m [Repository] |
returns a list of repository files and directories in a project.
returns a list of repository files and directories in a project given its project ID.
:: MonadIO m | |
=> Project | project |
-> ArchiveFormat | file format |
-> FilePath | file path to store the archive |
-> GitLab m (Either Status ()) |
get a file archive of the repository files. For example:
getFileArchive myProject TarGz "/tmp/myProject.tar.gz"
:: MonadIO m | |
=> Project | project |
-> ArchiveFormat | file format |
-> GitLab m (Either Status ByteString) |
get a file archive of the repository files as a
ByteString
. For example:
getFileArchiveBS myProject TarGz "/tmp/myProject.tar.gz"
:: MonadIO m | |
=> Int | project ID |
-> ArchiveFormat | file format |
-> FilePath | file path to store the archive |
-> GitLab m (Either Status ()) |
get a file archive of the repository files using the project's ID. For example:
getFileArchive' 3453 Zip "/tmp/myProject.zip"
:: MonadIO m | |
=> Int | project ID |
-> ArchiveFormat | file format |
-> GitLab m (Either Status ByteString) |
get a file archive of the repository files as a ByteString
using the project's ID. For example:
getFileArchiveBS' 3453 Zip "/tmp/myProject.zip"