Copyright | (c) 2020 Jens Petersen |
---|---|
License | MIT |
Maintainer | Jens Petersen <[email protected]> |
Safe Haskell | None |
Language | Haskell2010 |
Fedora.PDC
Description
Fedora PDC web api client library
Synopsis
- fedoraPDC :: String
- pdcArches :: String -> IO [Object]
- pdcChangesets :: String -> Query -> IO Object
- pdcComponentBranches :: String -> Query -> IO Object
- pdcComponentBranchSLAs :: String -> Query -> IO Object
- pdcComponentRelationshipTypes :: String -> IO [Object]
- pdcComponentSLATypes :: String -> Query -> IO [Object]
- pdcComposes :: String -> Maybe String -> Query -> IO Object
- pdcComposeImages :: String -> String -> IO Object
- pdcComposeImageRttTests :: String -> Query -> IO Object
- pdcComposeRpms :: String -> String -> IO Object
- pdcComposeTreeRttTests :: String -> Query -> IO Object
- pdcContentDeliveryContentFormats :: String -> Query -> IO [Object]
- pdcGlobalComponents :: String -> Query -> IO Object
- pdcImages :: String -> Query -> IO Object
- pdcModules :: String -> Query -> IO Object
- pdcProductVersions :: String -> Query -> IO [Object]
- pdcProducts :: String -> Query -> IO [Object]
- pdcReleases :: String -> Query -> IO Object
- pdcWhereToFileBugs :: String -> Query -> IO Object
- pdcRpms :: String -> Query -> IO Object
- queryPDC :: String -> String -> Query -> IO Object
- lookupKey :: FromJSON a => Text -> Object -> Maybe a
- lookupKey' :: FromJSON a => Text -> Object -> a
- makeKey :: String -> String -> Query
- makeItem :: String -> String -> QueryItem
- maybeKey :: String -> Maybe String -> Query
- type Query = [QueryItem]
- type QueryItem = (ByteString, Maybe ByteString)
- getResultsList :: Object -> [Object]
Documentation
pdcComponentRelationshipTypes :: String -> IO [Object] Source #
Release Component Relationship Type List
pdcComposeImages :: String -> String -> IO Object Source #
Compose Image Instance
https://pdc.fedoraproject.org/rest_api/v1/compose-images/ {compose_id}/
pdcComposeImageRttTests :: String -> Query -> IO Object Source #
Compose Image Rtt Test List
https://pdc.fedoraproject.org/rest_api/v1/compose-image-rtt-tests/ (all untested?)
pdcComposeRpms :: String -> String -> IO Object Source #
Compose Rpm List (seems heavy)
https://pdc.fedoraproject.org/rest_api/v1/compose-rpms/ {compose_id}/
pdcWhereToFileBugs :: String -> Query -> IO Object Source #
Filter Bugzilla Products And Components List
lookupKey' :: FromJSON a => Text -> Object -> a #
Like lookupKey but raises an error if no key found
Query.
General form: a=b&c=d
, but if the value is Nothing, it becomes
a&c=d
.
type QueryItem = (ByteString, Maybe ByteString) #
Query item
getResultsList :: Object -> [Object] Source #
Get results key from a response object