gitlab-haskell-0.1.7: A Haskell library for the GitLab web API

Copyright(c) Rob Stewart Heriot-Watt University 2019
LicenseBSD3
Maintainerrobstewart57@gmail.com
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

GitLab.API.Repositories

Description

 
Synopsis

Documentation

repositories Source #

Arguments

:: MonadIO m 
=> Project

the project

-> GitLab m [Repository] 

returns a list of repository files and directories in a project.

repositories' Source #

Arguments

:: MonadIO m 
=> Int

the project ID

-> GitLab m (Either Status [Repository]) 

returns a list of repository files and directories in a project given its project ID.

getFileArchive Source #

Arguments

:: 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"

getFileArchiveBS Source #

Arguments

:: 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"

getFileArchive' Source #

Arguments

:: 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"

getFileArchiveBS' Source #

Arguments

:: 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"