backend.actions

class backend.actions.Action(opts, action, frontend_client)[source]

Object to send data back to fronted

Parameters
  • frontent_callback (backend.callback.FrontendCallback) – object to post data back to frontend

  • destdir – filepath with build results

  • action (dict) – dict-like object with action task

Expected action keys:

  • action_type: main field determining what action to apply

# TODO: describe actions

get_chroot_result_dir(chroot, project_dirname, ownername)[source]
handle_createrepo(result)[source]
handle_fork(result)[source]
handle_delete_project(result)[source]
handle_comps_update(result)[source]
run_createrepo(ownername, projectname, project_dirname, chroots)[source]
delete_build(ownername, project_dirname, chroot_builddirs)[source]
handle_delete_build()[source]
handle_delete_multiple_builds()[source]
handle_delete_chroot()[source]
handle_generate_gpg_key(result)[source]
generate_gpg_key(ownername, projectname)[source]
handle_rawhide_to_release(result)[source]
handle_cancel_build(result)[source]
handle_build_module(result)[source]
run()[source]

Handle action (other then builds) - like rename or delete of project

class backend.actions.ActionType[source]
DELETE = 0
RENAME = 1
LEGAL_FLAG = 2
CREATEREPO = 3
UPDATE_COMPS = 4
GEN_GPG_KEY = 5
RAWHIDE_TO_RELEASE = 6
FORK = 7
UPDATE_MODULE_MD = 8
BUILD_MODULE = 9
CANCEL_BUILD = 10
class backend.actions.ActionResult[source]
WAITING = 0
SUCCESS = 1
FAILURE = 2