peridot-two/kojicompat
2024-12-25 15:27:23 +01:00
..
apiversion.go More koji functions 2024-12-25 13:41:06 +01:00
client.go Initial XMLRPC server (kojicompat) 2024-12-25 09:50:50 +01:00
getloggedinuser.go More koji functions 2024-12-25 13:41:06 +01:00
kojicompat.go Fix call number, we don't really care much about them 2024-12-25 15:27:23 +01:00
logout.go Implement session endpoints 2024-12-25 13:40:58 +01:00
readme.md Fix call number, we don't really care much about them 2024-12-25 15:27:23 +01:00
ssllogin.go Initial XMLRPC server (kojicompat) 2024-12-25 09:50:50 +01:00
tags.go Initial XMLRPC server (kojicompat) 2024-12-25 09:50:50 +01:00

kojicompat

Koji compatibility layer for Peridot2. Essentially a XMLRPC server that is feature compatible (or mostly?) with Koji.

We might skip some features that are rarely needed or just not useful for Rocky Linux/Pungi/modern tooling that uses Koji.

Compatibility

  • CGImport(metadata, directory, token=None)
  • CGInitBuild(cg, data)
  • CGRefundBuild(cg, build_id, token, state=3)
  • _listapi()
  • addArchiveType(name, description, extensions, compression_type=None)
  • addBType(name)
  • addChannel(channel_name, description=None)
  • addExternalRPM(rpminfo, external_repo, strict=True)
  • addExternalRepoToTag(tag_info, repo_info, priority, merge_mode='koji', arches=None)
  • addGroupMember(group, user, strict=True)
  • addHost(hostname, arches, krb_principal=None, force=False)
  • addHostToChannel(hostname, channel_name, create=False, force=False)
  • addRPMSig(an_rpm, data)
  • addUserKrbPrincipal(user, krb_principal)
  • addVolume(name, strict=True)
  • applyVolumePolicy(build, strict=False)
  • assignTask(task_id, host, force=False, override=False)
  • build(src, target, opts=None, priority=None, channel=None)
  • buildImage(name, version, arch, target, ksfile, img_type, opts=None, priority=None)
  • buildImageIndirection(opts=None, priority=None)
  • buildImageOz(name, version, arches, target, inst_tree, opts=None, priority=None)
  • buildReferences(build, limit=None, lazy=False)
  • cancelBuild(buildID, strict=False)
  • cancelTask(task_id, recurse=True)
  • cancelTaskChildren(task_id)
  • cancelTaskFull(task_id, strict=True)
  • chainBuild(srcs, target, opts=None, priority=None, channel=None)
  • chainMaven(builds, target, opts=None, priority=None, channel='maven')
  • changeBuildVolume(build, volume, strict=True)
  • checkTagAccess(tag_id, user_id=None)
  • checkTagPackage(tag, pkg)
  • checkUpload(path, name, verify=None, tail=None, volume=None)
  • count(methodName, *args, **kw)
  • countAndFilterResults(methodName, *args, **kw)
  • createBuildTarget(name, build_tag, dest_tag)
  • createEmptyBuild(name, version, release, epoch, owner=None, draft=False)
  • createExternalRepo(name, url)
  • createImageBuild(build_info)
  • createMavenBuild(build_info, maven_info)
  • createNotification(user_id, package_id, tag_id, success_only)
  • createNotificationBlock(user_id, package_id=None, tag_id=None)
  • createTag(name, parent=None, arches=None, perm=None, locked=False, maven_support=False, maven_include_all=False, extra=None)
  • createUser(username, status=None, krb_principal=None)
  • createWinBuild(build_info, win_info)
  • deleteBuild(build, strict=True, min_ref_age=604800)
  • deleteBuildTarget(buildTargetInfo)
  • deleteExternalRepo(info)
  • deleteNotification(id)
  • deleteNotificationBlock(id)
  • deleteRPMSig(rpminfo, sigkey=None, all_sigs=False)
  • deleteTag(tagInfo)
  • disableChannel(channelname, comment=None)
  • disableHost(hostname)
  • disableUser(username)
  • distRepo(tag, keys, **task_opts)
  • downloadTaskOutput(taskID, fileName, offset=0, size=-1, volume=None)
  • dropGroupMember(group, user)
  • echo(*args)
  • editBuildTarget(buildTargetInfo, name, build_tag, dest_tag)
  • editChannel(channelInfo, **kw)
  • editExternalRepo(info, name=None, url=None)
  • editHost(hostInfo, **kw)
  • editPermission(permission, description)
  • editTag(tagInfo, name, arches, locked, permissionID, extra=None)
  • editTag2(tagInfo, **kwargs)
  • editTagExternalRepo(tag_info, repo_info, priority=None, merge_mode=None, arches=None)
  • editUser(userInfo, name=None, krb_principal_mappings=None)
  • enableChannel(channelname, comment=None)
  • enableHost(hostname)
  • enableUser(username)
  • error()
  • evalPolicy(name, data)
  • exclusiveSession(*args, **opts)
  • fault()
  • filterResults(methodName, *args, **kw)
  • findBuildID(X, strict=False)
  • freeTask(task_id)
  • getAPIVersion()
  • getActiveRepos()
  • getAllArches()
  • getAllPerms()
  • getArchive(archive_id, strict=False)
  • getArchiveFile(archive_id, filename, strict=False)
  • getArchiveType(filename=None, type_name=None, type_id=None, strict=False)
  • getArchiveTypes()
  • getAverageBuildDuration(package, age=None)
  • getBuild(buildInfo, strict=False)
  • getBuildConfig(tag, event=None)
  • getBuildLogs(build)
  • getBuildNotification(id, strict=False)
  • getBuildNotificationBlock(id, strict=False)
  • getBuildNotificationBlocks(userID=None)
  • getBuildNotifications(userID=None)
  • getBuildTarget(info, event=None, strict=False)
  • getBuildTargets(info=None, event=None, buildTagID=None, destTagID=None, queryOpts=None)
  • getBuildType(buildInfo, strict=False)
  • getBuildroot(buildrootID, strict=False)
  • getBuildrootListing(id)
  • getChangelogEntries(buildID=None, taskID=None, filepath=None, author=None, before=None, after=None, queryOpts=None, strict=False)
  • getChannel(channelInfo, strict=False)
  • getEvent(id, strict=True)
  • getExternalRepo(info, strict=False, event=None)
  • getExternalRepoList(tag_info, event=None)
  • getFullInheritance(tag, event=None, reverse=False, **kwargs)
  • getGroupMembers(group)
  • getHost(hostInfo, strict=False, event=None)
  • getImageArchive(archive_id, strict=False)
  • getImageBuild(buildInfo, strict=False)
  • getInheritanceData(tag, event=None)
  • getKojiVersion()
  • getLastEvent(before=None, strict=True)
  • getLastHostUpdate(hostID, ts=False)
  • getLatestBuilds(tag, event=None, package=None, type=None, draft=None)
  • getLatestMavenArchives(tag, event=None, inherit=True)
  • getLatestRPMS(tag, package=None, arch=None, event=None, rpmsigs=False, type=None, draft=None)
  • getLoggedInUser()
  • getMavenArchive(archive_id, strict=False)
  • getMavenBuild(buildInfo, strict=False)
  • getNextRelease(build_info, incr=1)
  • getPackage(info, strict=False, create=False)
  • getPackageConfig(tag, pkg, event=None)
  • getPackageID(name, strict=False)
  • getPerms()
  • getRPM(rpminfo, strict=False, multi=False)
  • getRPMChecksums(rpm_id, checksum_types=None, cacheonly=False)
  • getRPMDeps(rpmID, depType=None, queryOpts=None, strict=False)
  • getRPMFile(rpmID, filename, strict=False)
  • getRPMHeaders(rpmID=None, taskID=None, filepath=None, headers=None, strict=False)
  • getRepo(tag, state=None, event=None, dist=False, min_event=None)
  • getSessionInfo(details=False, user_id=None)
  • getTag(tagInfo, strict=False, event=None, blocked=False)
  • getTagExternalRepos(tag_info=None, repo_info=None, event=None)
  • getTagGroups(tag, event=None, inherit=True, incl_pkgs=True, incl_reqs=True, incl_blocked=False)
  • getTagID(info, strict=False, create=False)
  • getTaskChildren(task_id, request=False, strict=False)
  • getTaskDescendents(task_id, request=False)
  • getTaskInfo(task_id, request=False, strict=False)
  • getTaskRequest(taskId)
  • getTaskResult(taskId, raise_fault=True)
  • getUser(userInfo=None, strict=False, krb_princs=True, groups=False)
  • getUserGroups(user)
  • getUserPerms(userID=None, with_groups=True)
  • getUserPermsInheritance(userID)
  • getVolume(volume, strict=False)
  • getWinArchive(archive_id, strict=False)
  • getWinBuild(buildInfo, strict=False)
  • grantCGAccess(user, cg, create=False)
  • grantPermission(userinfo, permission, create=False, description=None)
  • groupListAdd(taginfo, grpinfo, block=False, force=False, **opts)
  • groupListBlock(taginfo, grpinfo)
  • groupListRemove(taginfo, grpinfo, force=False)
  • groupListUnblock(taginfo, grpinfo)
  • groupPackageListAdd(taginfo, grpinfo, pkg_name, block=False, force=False, **opts)
  • groupPackageListBlock(taginfo, grpinfo, pkg_name)
  • groupPackageListRemove(taginfo, grpinfo, pkg_name)
  • groupPackageListUnblock(taginfo, grpinfo, pkg_name)
  • groupReqListAdd(taginfo, grpinfo, reqinfo, block=False, force=False, **opts)
  • groupReqListBlock(taginfo, grpinfo, reqinfo)
  • groupReqListRemove(taginfo, grpinfo, reqinfo, force=None)
  • groupReqListUnblock(taginfo, grpinfo, reqinfo)
  • hasPerm(perm, strict=False)
  • hello(*args)
  • host.assertPolicy(name, data, default='deny')
  • host.checkPolicy(name, data, default='deny', strict=False)
  • host.closeTask(task_id, response)
  • host.completeBuild(task_id, build_id, srpm, rpms, brmap=None, logs=None)
  • host.completeImageBuild(task_id, build_id, results)
  • host.completeMavenBuild(task_id, build_id, maven_results, rpm_results)
  • host.completeWinBuild(task_id, build_id, results, rpm_results)
  • host.createMavenBuild(build_info, maven_info)
  • host.distRepoMove(repo_id, uploadpath, arch)
  • host.evalPolicy(name, data)
  • host.failBuild(task_id, build_id)
  • host.failTask(task_id, response)
  • host.freeTasks(tasks)
  • host.getHost()
  • host.getHostTasks()
  • host.getID()
  • host.getLoadData()
  • host.getTasks()
  • host.importArchive(filepath, buildinfo, type, typeInfo)
  • host.importImage(task_id, build_info, results)
  • host.importWrapperRPMs(task_id, build_id, rpm_results)
  • host.initBuild(data)
  • host.initImageBuild(task_id, build_info)
  • host.initMavenBuild(task_id, build_info, maven_info)
  • host.initWinBuild(task_id, build_info, win_info)
  • host.isEnabled()
  • host.moveBuildToScratch(task_id, srpm, rpms, logs=None)
  • host.moveImageBuildToScratch(task_id, results)
  • host.moveMavenBuildToScratch(task_id, results, rpm_results)
  • host.moveWinBuildToScratch(task_id, results, rpm_results)
  • host.newBuildRoot(repo, arch, task_id=None)
  • host.openTask(task_id)
  • host.refuseTask(task_id, soft=True, msg='')
  • host.repoDone(repo_id, data, expire=False, repo_json_updates=None)
  • host.repoInit(tag, task_id=None, event=None, opts=None)
  • host.setBuildRootList(brootid, rpmlist, task_id=None)
  • host.setBuildRootState(brootid, state, task_id=None)
  • host.setHostData(hostdata)
  • host.setTaskWeight(task_id, weight)
  • host.subtask(method, arglist, parent, **opts)
  • host.subtask2(_HostExports__parent, _HostExports__taskopts, _HostExports__method, *args, **opts)
  • host.tagBuild(task_id, tag, build, force=False, fromtag=None)
  • host.tagNotification(is_successful, tag_id, from_id, build_id, user_id, ignore_success=False, failure_msg='')
  • host.taskSetWait(parent, tasks)
  • host.taskWait(parent)
  • host.taskWaitResults(parent, tasks, canfail=None)
  • host.updateBuildRootList(brootid, rpmlist, task_id=None)
  • host.updateBuildrootArchives(brootid, task_id, archives, project=False)
  • host.updateHost(task_load, ready, data=None)
  • host.updateMavenBuildRootList(brootid, task_id, mavenlist, ignore=None, project=False, ignore_unknown=False, extra_deps=None)
  • host.writeSignedRPM(an_rpm, sigkey, force=False)
  • importArchive(filepath, buildinfo, type, typeInfo)
  • importRPM(path, basename)
  • listArchiveFiles(archive_id, queryOpts=None, strict=False)
  • listArchives(buildID=None, buildrootID=None, componentBuildrootID=None, hostID=None, type=None, filename=None, size=None, checksum=None, checksum_type=None, typeInfo=None, queryOpts=None, imageID=None, archiveID=None, strict=False)
  • listBTypes(query=None, queryOpts=None)
  • listBuildRPMs(build)
  • listBuildroots(hostID=None, tagID=None, state=None, rpmID=None, archiveID=None, taskID=None, buildrootID=None, repoID=None, queryOpts=None)
  • listBuilds(packageID=None, userID=None, taskID=None, prefix=None, state=None, volumeID=None, source=None, createdBefore=None, createdAfter=None, completeBefore=None, completeAfter=None, type=None, typeInfo=None, queryOpts=None, pattern=None, cgID=None, draft=None)
  • listCGs()
  • listChannels(hostID=None, event=None, enabled=None)
  • listExternalRepos(info=None, url=None, event=None, queryOpts=None)
  • listHosts(arches=None, channelID=None, ready=None, enabled=None, userID=None, queryOpts=None)
  • listPackages(tagID=None, userID=None, pkgID=None, prefix=None, inherited=False, with_dups=False, event=None, queryOpts=None, with_owners=True, with_blocked=True)
  • listPackagesSimple(prefix=None, queryOpts=None)
  • listRPMFiles(rpmID, queryOpts=None)
  • listRPMs(buildID=None, buildrootID=None, imageID=None, componentBuildrootID=None, hostID=None, arches=None, queryOpts=None, draft=None)
  • listTagged(tag, event=None, inherit=False, prefix=None, latest=False, package=None, owner=None, type=None, strict=True, extra=False, draft=None)
  • listTaggedArchives(tag, event=None, inherit=False, latest=False, package=None, type=None, strict=True, extra=True)
  • listTaggedRPMS(tag, event=None, inherit=False, latest=False, package=None, arch=None, rpmsigs=False, owner=None, type=None, strict=True, extra=True, draft=None)
  • listTags(build=None, package=None, perms=True, queryOpts=None, pattern=None)
  • listTaskOutput(taskID, stat=False, all_volumes=False, strict=False)
  • listTasks(opts=None, queryOpts=None)
  • listUsers(userType=0, prefix=None, queryOpts=None, perm=None, inherited_perm=False)
  • listVolumes()
  • login(*args, **opts)
  • logout(session_id=None)
  • logoutChild(session_id)
  • makeTask(*args, **opts)
  • massTag(tag, builds)
  • mavenBuild(url, target, opts=None, priority=None, channel='maven')
  • mavenEnabled()
  • mergeScratch(task_id)
  • moveAllBuilds(tag1, tag2, package, force=False)
  • moveBuild(tag1, tag2, build, force=False)
  • newGroup(name)
  • newRepo(tag, event=None, src=False, debuginfo=False, separate_src=False)
  • packageListAdd(taginfo, pkginfo, owner=None, block=None, extra_arches=None, force=False, update=False)
  • packageListBlock(taginfo, pkginfo, force=False)
  • packageListRemove(taginfo, pkginfo, force=False)
  • packageListSetArches(taginfo, pkginfo, arches, force=False)
  • packageListSetOwner(taginfo, pkginfo, owner, force=False)
  • packageListUnblock(taginfo, pkginfo, force=False)
  • promoteBuild(build, force=False)
  • queryHistory(tables=None, **kwargs)
  • queryRPMSigs(rpm_id=None, sigkey=None, queryOpts=None)
  • removeExternalRepoFromTag(tag_info, repo_info)
  • removeHostFromChannel(hostname, channel_name)
  • removeUserKrbPrincipal(user, krb_principal)
  • removeVolume(volume)
  • renameChannel(old, new)
  • repo.autoRequests()
  • repo.checkQueue()
  • repo.checkRequest(req_id)
  • repo.get(tag, min_event=None, at_event=None, opts=None)
  • repo.getExternalRepoData(erepo)
  • repo.query(clauses, fields=None, opts=None)
  • repo.queryQueue(clauses=None, fields=None, opts=None)
  • repo.references(repo_id)
  • repo.request(tag, min_event=None, at_event=None, opts=None, priority=None, force=False)
  • repo.setExternalRepoData(external_repo_id, data)
  • repo.setRequestPriority(req_id, priority)
  • repo.setState(repo_id, state)
  • repo.updateEndEvents()
  • repoDelete(repo_id)
  • repoExpire(repo_id)
  • repoInfo(repo_id, strict=False)
  • repoProblem(repo_id)
  • resetBuild(build)
  • restartHosts(priority=5, options=None)
  • resubmitTask(taskID)
  • revokeCGAccess(user, cg)
  • revokePermission(userinfo, permission)
  • runroot(tagInfo, arch, command, channel=None, **opts)
  • scheduler.doRun(force=False)
  • scheduler.getHostData(hostID=None)
  • scheduler.getLogMessages(clauses=None, fields=None, opts=None)
  • scheduler.getTaskRefusals(clauses=None, fields=None)
  • scheduler.getTaskRuns(clauses=None, fields=None, opts=None)
  • search(terms, type, matchType, queryOpts=None)
  • setBuildOwner(build, user)
  • setBuildTimestamp(build, ts)
  • setInheritanceData(tag, data, clear=False)
  • setTaskPriority(task_id, priority, recurse=True)
  • sharedSession()
  • showOpts(as_string=True)
  • showSession()
  • snapshotTag(src, dst, config=True, pkgs=True, builds=True, groups=True, latest_only=True, inherit_builds=True, event=None, force=False)
  • snapshotTagModify(src, dst, config=True, pkgs=True, builds=True, groups=True, latest_only=True, inherit_builds=True, event=None, force=False, remove=False)
  • sslLogin(*args, **opts)
  • subsession()
  • system.listMethods()
  • system.methodHelp(method)
  • system.methodSignature(method)
  • tagBuild(tag, build, force=False, fromtag=None)
  • tagBuildBypass(tag, build, force=False, notify=False)
  • tagChangedSinceEvent(event, taglist)
  • tagFirstChangeEvent(tag, after=None, inherit=True)
  • tagLastChangeEvent(tag, before=None, inherit=True)
  • taskFinished(taskId)
  • untagBuild(tag, build, strict=True, force=False)
  • untagBuildBypass(tag, build, strict=True, force=False, notify=False)
  • untaggedBuilds(name=None, queryOpts=None, draft=None)
  • updateNotification(id, package_id, tag_id, success_only)
  • uploadFile(path, name, size, md5sum, offset, data, volume=None, checksum=None)
  • winBuild(vm, url, target, opts=None, priority=None, channel='vm')
  • winEnabled()
  • wrapperRPM(build, url, target, priority=None, channel='maven', opts=None)
  • writeSignedRPM(an_rpm, sigkey, force=False)