Copyright | (c) 2020 Jens Petersen |
---|---|
License | GPL-2.0-only |
Maintainer | Jens Petersen <petersen@redhat.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Pagure REST client library
Synopsis
- pagureProjectInfo :: String -> String -> IO (Either String Object)
- pagureListProjects :: String -> Query -> IO Object
- pagureListProjectIssues :: String -> String -> Query -> IO (Either String Object)
- data IssueTitleStatus = IssueTitleStatus {
- pagureIssueId :: Integer
- pagureIssueTitle :: String
- pagureIssueStatus :: Text
- pagureIssueCloseStatus :: Maybe Text
- pagureListProjectIssueTitlesStatus :: String -> String -> Query -> IO (Either String [IssueTitleStatus])
- pagureProjectIssueInfo :: String -> String -> Int -> IO (Either String Object)
- pagureListGitBranches :: String -> String -> IO (Either String [String])
- pagureListGitBranchesWithCommits :: String -> String -> IO (Either String Object)
- pagureListUsers :: String -> String -> IO Object
- pagureUserForks :: String -> String -> IO [Text]
- pagureUserInfo :: String -> String -> Query -> IO (Either String Object)
- pagureUserRepos :: String -> String -> IO [Text]
- pagureListGroups :: String -> Maybe String -> Query -> IO Object
- pagureGroupInfo :: String -> String -> Query -> IO (Either String Object)
- pagureProjectGitURLs :: String -> String -> IO (Either String Object)
- queryPagure :: String -> String -> Query -> IO Object
- queryPagureSingle :: String -> String -> Query -> IO (Either String Object)
- queryPagureCount :: String -> String -> Query -> String -> IO (Maybe Integer)
- queryPagureCountPaged :: String -> Bool -> String -> Query -> (String, String) -> 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
Documentation
:: String | server |
-> String | project |
-> IO (Either String Object) |
:: String | server |
-> Query | parameters |
-> IO Object |
List projects
pagureListProjectIssues Source #
:: String | server |
-> String | project repo |
-> Query | parameters |
-> IO (Either String Object) |
List project issues
data IssueTitleStatus Source #
IssueTitleStatus | |
|
pagureListProjectIssueTitlesStatus Source #
:: String | server |
-> String | repo |
-> Query | parameters |
-> IO (Either String [IssueTitleStatus]) |
List project issue titles
pagureProjectIssueInfo Source #
:: String | server |
-> String | repo |
-> Int | issue number |
-> IO (Either String Object) |
Issue information
pagureListGitBranches Source #
:: String | server |
-> String | repo |
-> IO (Either String [String]) |
List repo branches
pagureListGitBranchesWithCommits Source #
:: String | server |
-> String | repo |
-> IO (Either String Object) |
List repo branches with commits
:: String | server |
-> String | pattern |
-> IO Object |
List users
:: String | server |
-> String | user |
-> Query | parameters |
-> IO (Either String Object) |
User information
:: String | server |
-> Maybe String | optional pattern |
-> Query | parameters |
-> IO Object |
List groups
:: String | server |
-> String | group |
-> Query | parameters |
-> IO (Either String Object) |
Group information
:: String | server |
-> String | repo |
-> IO (Either String Object) |
Project Git URLs
:: String | server |
-> String | api path |
-> Query | parameters |
-> IO (Either String Object) |
single query
:: String | server |
-> String | api path |
-> Query | parameters |
-> String | pagination name |
-> IO (Maybe Integer) |
count total number of hits
queryPagureCountPaged Source #
:: String | server |
-> Bool | count |
-> String | api path |
-> Query | parameters |
-> (String, String) | pagination and paging names |
-> IO [Object] |
lookupKey' :: FromJSON a => Text -> Object -> a #