pagure-0.2.0: Pagure REST client library
Copyright(c) 2020 Jens Petersen
LicenseGPL-2.0-only
MaintainerJens Petersen <petersen@redhat.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Fedora.Pagure

Description

Pagure REST client library

Synopsis

Documentation

pagureProjectInfo Source #

Arguments

:: String

server

-> String

project

-> IO (Either String Object) 

Project info

pagureProjectInfo server "repo" pagureProjectInfo server "namespace/repo"

https://pagure.io/api/0/#projects-tab

pagureListProjects Source #

Arguments

:: String

server

-> Query

parameters

-> IO Object 

pagureListProjectIssues Source #

Arguments

:: String

server

-> String

project repo

-> Query

parameters

-> IO (Either String Object) 

data IssueTitleStatus Source #

Constructors

IssueTitleStatus 

Fields

pagureListProjectIssueTitlesStatus Source #

Arguments

:: String

server

-> String

repo

-> Query

parameters

-> IO (Either String [IssueTitleStatus]) 

List project issue titles

https://pagure.io/api/0/#issues-tab

pagureProjectIssueInfo Source #

Arguments

:: String

server

-> String

repo

-> Int

issue number

-> IO (Either String Object) 

pagureListGitBranches Source #

Arguments

:: String

server

-> String

repo

-> IO (Either String [String]) 

pagureListGitBranchesWithCommits Source #

Arguments

:: String

server

-> String

repo

-> IO (Either String Object) 

List repo branches with commits

https://pagure.io/api/0/#projects-tab

pagureListUsers Source #

Arguments

:: String

server

-> String

pattern

-> IO Object 

pagureUserForks Source #

Arguments

:: String

server

-> String

user

-> IO [Text] 

list user's forks

pagureUserInfo Source #

Arguments

:: String

server

-> String

user

-> Query

parameters

-> IO (Either String Object) 

pagureUserRepos Source #

Arguments

:: String

server

-> String

user

-> IO [Text] 

list user's repos

pagureListGroups Source #

Arguments

:: String

server

-> Maybe String

optional pattern

-> Query

parameters

-> IO Object 

pagureGroupInfo Source #

Arguments

:: String

server

-> String

group

-> Query

parameters

-> IO (Either String Object) 

pagureProjectGitURLs Source #

Arguments

:: String

server

-> String

repo

-> IO (Either String Object) 

queryPagure Source #

Arguments

:: String

server

-> String

api path

-> Query

parameters

-> IO Object 

low-level query

queryPagureSingle Source #

Arguments

:: String

server

-> String

api path

-> Query

parameters

-> IO (Either String Object) 

single query

queryPagureCount Source #

Arguments

:: String

server

-> String

api path

-> Query

parameters

-> String

pagination name

-> IO (Maybe Integer) 

count total number of hits

queryPagureCountPaged Source #

Arguments

:: String

server

-> Bool

count

-> String

api path

-> Query

parameters

-> (String, String)

pagination and paging names

-> IO [Object] 

makeKey :: String -> String -> Query #

makeItem :: String -> String -> QueryItem #

maybeKey :: String -> Maybe String -> Query #

type Query = [QueryItem] #

type QueryItem = (ByteString, Maybe ByteString) #

lookupKey :: FromJSON a => Text -> Object -> Maybe a #

lookupKey' :: FromJSON a => Text -> Object -> a #