Copyright | (c) 2020-2024 Jens Petersen |
---|---|
License | GPL-2.0-or-later |
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 {}
- 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)
- pagureGroupRepos :: String -> Bool -> String -> IO [Text]
- 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
- getRepos :: Text -> Object -> [Text]
Documentation
List projects
pagureListProjectIssues Source #
List project issues
data IssueTitleStatus Source #
pagureListProjectIssueTitlesStatus Source #
List project issue titles
pagureProjectIssueInfo Source #
Issue information
pagureListGitBranches Source #
List repo branches
pagureListGitBranchesWithCommits Source #
List repo branches with commits
List users
User information
List groups
Group information
Project Git URLs
single query
count total number of hits
queryPagureCountPaged Source #
:: String | server |
-> Bool | count |
-> String | api path |
-> Query | parameters |
-> (String, String) | pagination and paging names |
-> IO [Object] |
Get count (with queryPagureCount) or full results (queryPagurePaged)
type QueryItem = (ByteString, Maybe ByteString) #
An item from the query string, split up into two parts.
The second part should be Nothing
if there was no key-value
separator after the query item name.
Since: http-types-0.2.0
lookupKey' :: FromJSON a => Text -> Object -> a #
Like lookupKey but raises an error if no key found