Safe Haskell | None |
---|---|
Language | Haskell2010 |
A library for accessing a Koji hub via its XMLRPC API.
Synopsis
- newtype BuildID = BuildId Int
- data BuildInfo
- = BuildInfoID Int
- | BuildInfoNVR String
- buildIDInfo :: BuildID -> BuildInfo
- fedoraKojiHub :: String
- centosKojiHub :: String
- kojiBuildTags :: String -> BuildInfo -> IO [String]
- kojiBuildTarget :: String -> String -> IO (Maybe (String, String))
- kojiGetBuildID :: String -> String -> IO (Maybe BuildID)
- kojiGetBuildState :: String -> BuildInfo -> IO (Maybe BuildState)
- kojiGetBuildTaskID :: String -> String -> IO (Maybe TaskID)
- kojiGetCurrentRepo :: String -> String -> IO (Maybe Struct)
- kojiGetRepo :: String -> String -> Maybe RepoState -> Maybe Int -> IO (Maybe Struct)
- kojiGetTaskInfo :: String -> TaskID -> IO (Maybe Struct)
- kojiGetTaskChildren :: String -> TaskID -> Bool -> IO [Struct]
- kojiGetTaskState :: String -> TaskID -> IO (Maybe TaskState)
- kojiGetUserID :: String -> String -> IO (Maybe UserID)
- kojiLatestBuild :: String -> String -> String -> IO (Maybe Struct)
- kojiLatestBuildRepo :: String -> String -> Int -> String -> IO (Maybe Struct)
- kojiListSideTags :: String -> Maybe String -> Maybe String -> IO [String]
- kojiListTaskIDs :: String -> Struct -> Struct -> IO [TaskID]
- kojiUserBuildTasks :: String -> UserID -> Maybe String -> Maybe String -> IO [TaskID]
- data KojiBuild = KojiBuild {
- kbBuildId :: Int
- kbPackageId :: Int
- kbOwnerName :: String
- kbNvr :: String
- kojiListTaggedBuilds :: String -> Bool -> String -> IO [KojiBuild]
- newtype PackageID = PackageId Int
- newtype TagID = TagId Int
- newtype TaskID = TaskId Int
- newtype UserID = UserId Int
- displayID :: ID a => a -> String
- getID :: ID a => a -> Int
- readID :: ID a => Struct -> Maybe a
- readID' :: Struct -> Maybe Int
- data TaskState
- getTaskState :: Struct -> Maybe TaskState
- openTaskStates :: [TaskState]
- openTaskValues :: Value
- readTaskState :: Value -> TaskState
- data BuildState
- readBuildState :: Value -> BuildState
- type Struct = [(String, Value)]
- lookupStruct :: XmlRpcType a => String -> Struct -> Maybe a
- data Value
- = ValueInt Int
- | ValueBool Bool
- | ValueString String
- | ValueUnwrapped String
- | ValueDouble Double
- | ValueDateTime LocalTime
- | ValueBase64 ByteString
- | ValueStruct [(String, Value)]
- | ValueArray [Value]
- | ValueNil
- getInt :: Value -> Maybe Int
- getString :: Value -> Maybe String
- data RepoState
- readRepoState :: Value -> RepoState
Documentation
BuildInfoID Int | |
BuildInfoNVR String |
buildIDInfo :: BuildID -> BuildInfo Source #
map a buildid into a buildinfo
fedoraKojiHub :: String Source #
main Fedora Koji Hub
centosKojiHub :: String Source #
Centos Koji mbox Hub
:: String | hubUrl |
-> String | target |
-> IO (Maybe (String, String)) | (build-tag,dest-tag) |
Get the build and dest tags for a target.
:: String | hub url |
-> String | NVR |
-> IO (Maybe BuildID) |
Get the buildid of an nvr build
:: String | hub url |
-> BuildInfo | |
-> IO (Maybe BuildState) |
Get the state of a build
:: String | hub url |
-> String | NVR |
-> IO (Maybe TaskID) |
Get the task of an nvr build
kojiGetCurrentRepo :: String -> String -> IO (Maybe Struct) Source #
Get current repo info for tag
Get repo info for tag
Get the children tasks of a task
Get the state of a taskid
:: String | hub url |
-> String | user |
-> IO (Maybe UserID) |
Get the userid for the named user
:: String | hub |
-> String | tag |
-> String | pkg |
-> IO (Maybe Struct) |
Get the latest build of a package in a tag
:: String | hub |
-> String | tag |
-> Int | event |
-> String | pkg |
-> IO (Maybe Struct) |
Get latest build in a tag for package at a time event.
Used for example to implement waitrepo
:: String | hubUrl |
-> Maybe String | basetag |
-> Maybe String | user |
-> IO [String] | list of sidetags |
List sidetags (preferably for user and/or basetag)
List tasks filtered by query options
List the open tasks of a user (matching source/target)
Build metadata
KojiBuild | |
|
:: String | hub url |
-> Bool | latest |
-> String | tag |
-> IO [KojiBuild] |
List builds in a tag
TagId Int |
TaskId Int |
UserId Int |
The state of a task
Instances
Enum TaskState Source # | |
Eq TaskState Source # | |
Show TaskState Source # | |
getTaskState :: Struct -> Maybe TaskState Source #
openTaskStates :: [TaskState] Source #
Open task states
readTaskState :: Value -> TaskState Source #
data BuildState Source #
The state of a build
Instances
Enum BuildState Source # | |
Defined in Distribution.Koji succ :: BuildState -> BuildState pred :: BuildState -> BuildState toEnum :: Int -> BuildState fromEnum :: BuildState -> Int enumFrom :: BuildState -> [BuildState] enumFromThen :: BuildState -> BuildState -> [BuildState] enumFromTo :: BuildState -> BuildState -> [BuildState] enumFromThenTo :: BuildState -> BuildState -> BuildState -> [BuildState] | |
Eq BuildState Source # | |
Defined in Distribution.Koji (==) :: BuildState -> BuildState -> Bool (/=) :: BuildState -> BuildState -> Bool | |
Show BuildState Source # | |
Defined in Distribution.Koji showsPrec :: Int -> BuildState -> ShowS show :: BuildState -> String showList :: [BuildState] -> ShowS |
readBuildState :: Value -> BuildState Source #
lookupStruct :: XmlRpcType a => String -> Struct -> Maybe a Source #
Lookup a key in a XML result
ValueInt Int | |
ValueBool Bool | |
ValueString String | |
ValueUnwrapped String | |
ValueDouble Double | |
ValueDateTime LocalTime | |
ValueBase64 ByteString | |
ValueStruct [(String, Value)] | |
ValueArray [Value] | |
ValueNil |
Repo state
Instances
Enum RepoState Source # | |
Eq RepoState Source # | |
Show RepoState Source # | |
readRepoState :: Value -> RepoState Source #