Copyright | (c) 2020 Jens Petersen |
---|---|
License | MIT |
Maintainer | Jens Petersen <juhpetersen@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Fedora Bodhi REST client library
Synopsis
- bodhiBuild :: String -> IO Object
- bodhiBuilds :: Query -> IO [Object]
- bodhiComment :: String -> IO Object
- bodhiComments :: Query -> IO [Object]
- bodhiCSRF :: IO (Maybe Text)
- bodhiOverride :: String -> IO (Maybe Object)
- bodhiOverrides :: Query -> IO [Object]
- bodhiOverrideDates :: String -> IO (Maybe (LocalTime, LocalTime))
- bodhiPackages :: Query -> IO [Object]
- bodhiRelease :: String -> IO Object
- bodhiReleases :: Query -> IO [Object]
- bodhiUpdate :: String -> IO (Maybe Object)
- bodhiUpdates :: Query -> IO [Object]
- bodhiUser :: String -> IO Object
- bodhiUsers :: Query -> IO [Object]
- lookupKey :: FromJSON a => Text -> Object -> Maybe a
- lookupKey' :: FromJSON a => Text -> Object -> a
- queryBodhi :: FromJSON a => Query -> String -> IO a
- makeKey :: String -> String -> Query
- makeItem :: String -> String -> QueryItem
- maybeKey :: String -> Maybe String -> Query
- type Query = [QueryItem]
- type QueryItem = (ByteString, Maybe ByteString)
Documentation
bodhiBuild :: String -> IO Object Source #
Returns build JSON for NVR
https://bodhi.fedoraproject.org/docs/server_api/rest/builds.html#service-0
bodhiBuilds :: Query -> IO [Object] Source #
returns JSON list of builds
https://bodhi.fedoraproject.org/docs/server_api/rest/builds.html#service-1
bodhiComment :: String -> IO Object Source #
Returns comment JSON for id
https://bodhi.fedoraproject.org/docs/server_api/rest/comments.html#service-0
bodhiComments :: Query -> IO [Object] Source #
returns JSON list of comments
https://bodhi.fedoraproject.org/docs/server_api/rest/comments.html#service-1
bodhiOverride :: String -> IO (Maybe Object) Source #
Returns override JSON for NVR
https://bodhi.fedoraproject.org/docs/server_api/rest/overrides.html#service-0
bodhiOverrides :: Query -> IO [Object] Source #
returns JSON list of overrides
https://bodhi.fedoraproject.org/docs/server_api/rest/overrides.html#service-1
bodhiOverrideDates :: String -> IO (Maybe (LocalTime, LocalTime)) Source #
Returns override expiration and submission dates for NVR
bodhiPackages :: Query -> IO [Object] Source #
bodhiRelease :: String -> IO Object Source #
read releases metadata from Bodhi
https://bodhi.fedoraproject.org/docs/server_api/rest/releases.html#service-0
bodhiReleases :: Query -> IO [Object] Source #
read releases metadata from Bodhi
https://bodhi.fedoraproject.org/docs/server_api/rest/releases.html#service-1
bodhiUpdate :: String -> IO (Maybe Object) Source #
read an update from Bodhi
https://bodhi.fedoraproject.org/docs/server_api/rest/updates.html#service-0
bodhiUpdates :: Query -> IO [Object] Source #
search for updates on Bodhi
https://bodhi.fedoraproject.org/docs/server_api/rest/updates.html#service-2
bodhiUser :: String -> IO Object Source #
user info from Bodhi
https://bodhi.fedoraproject.org/docs/server_api/rest/users.html#service-0
bodhiUsers :: Query -> IO [Object] Source #
list users from Bodhi
https://bodhi.fedoraproject.org/docs/server_api/rest/users.html#service-1
lookupKey' :: FromJSON a => Text -> Object -> a #
queryBodhi :: FromJSON a => Query -> String -> IO a Source #
low-level query