Man page - mini-buildd-api(1)
Packages contains this manual
apt-get install mini-buildd-utils
Manual
MINI-BUILDD-API
NAMEDESCRIPTION
options:
API calls (run âmini-buildd-api <call> --helpâ for full single call help):
NAME
mini-buildd-api - Run API calls against a mini-buildd instance
DESCRIPTION
usage:
mini-buildd-api [-h] [--version] [-l LOG_LEVEL] [-J]
[--auto-confirm]
[--auto-save-passwords] [--script-mode]
<call> [options] ...
Run API calls against a mini-buildd instance
options:
-h , --help
show this help message and exit
--version
show programâs version number and exit
-l , --log-level LOG_LEVEL
set log level (if none given, [âWARNINGâ, âmini_buildd.INFOâ] is applied by default). May also be given as ââ<logger>.<level>ââ to effect individual loggers only, and multiple times (check existing logs for actual logger names). (default: None)
-J , --json
use parsable json output (default: False)
--auto-confirm
force-bypass extra confirmation (for confirmable calls) (default: False)
--auto-save-passwords
donât ask before saving passwords (via python3-keyring) (default: False)
--script-mode
force not to be interactive (default: False)
API calls (run âmini-buildd-api <call> --helpâ for full single call help):
<call> [options]
|
status |
Get status of this instance |
JSON result description:
|
{ |
"version": mini-builddâs version "identity": Instance identity "url": Instance URL (HTTP) "incoming_url": Incoming URL (currently FTP) "load": Instanceâs (0 =< load <= 1). If negative, the instance is stopped "chroots": List of active chroots "remotes": Active or auto-reactivatable remotes ["repositories": Simplified structural representation of all repositories] |
}
Authorization: NONE
.
pub_key
Get public key
Get ASCII-armored GnuPG public key of this instance.
Used to sign the apt repositories (apt key) and for authorization across instances.
Authorization: NONE
.
dput_conf
Get recommended dput config snippet
Usually, this is for integration in your personal ââË/.dput.cfââ.
Authorization: NONE
.
sources_list
Get sources.list (apt lines)
Usually, this output is put to a file like ââ/etc/apt/sources.list.d/mini-buildd-xyz.listââ.
Authorization: NONE
.
|
ls |
List source package in repository |
Authorization: NONE
.
|
show |
Show source package in repository |
Authorization: NONE
.
debdiff
Compare two internal source packages
Authorization: NONE
.
migrate
Migrate source package
Migrates a source package along with all its binary packages. If
run for a rollback distribution, this will perform a rollback restore.
Authorization: STAFF
.
|
remove |
Remove source package |
Removes a source package along with all its binary packages.
Authorization: ADMIN
.
|
port |
Port internal source package |
An internal âportâ
is a no-changes (i.e., only the changelog will be
adapted)
rebuild of the given locally-installed package.
When ââfrom_distributionââ equals ââto_distributionââ, a rebuild will be done.
Authorization: STAFF
.
port_ext
Port external source package
An external âportâ
is a no-changes (i.e., only the changelog will be
adapted)
rebuild of any given source package.
Authorization: STAFF
.
|
retry |
Retry a previously failed source package |
JSON result description:
Changes file name that has been re-uploaded
Authorization: STAFF
.
|
cancel |
Cancel an ongoing package build |
Authorization: STAFF
.
set_user_key
Set a userâs GnuPG public key
Authorization: LOGIN
.
subscribe
Subscribe to (email) notifications
Authorization: LOGIN
.
unsubscribe
Unsubscribe from (email) notifications
Authorization: LOGIN
.
remake_chroots
Remake chroots
Run actions âremoveâ, âprepareâ, âcheckâ and âactivateâ.
Note that Daemon will be stopped before running, cancelling ongoing events (ââBUILDINGââ, ââPACKAGINGââ).
Authorization: ADMIN
.
|
start |
Start Daemon (accept incoming) |
Does nothing if already started; will fail if Daemon instance is not activated.
Authorization: ADMIN
.
|
stop |
Stop Daemon (stop accepting incoming) |
Does nothing if already stopped. Any possibly running builds will be cancelled.
This state is *not persisted*. Please *deactivate* the Daemon instance via :mbdpage:âsetupâ to persist over *mini-buildd service* restarts.
Authorization: ADMIN
.
|
wake |
Wake a remote instance |
Authorization: STAFF
.
handshake
Check if signed message matches a remote, reply our signed message on success
This is for internal use only.
Authorization: NONE
.
cronjob
Run a cron job now (out of schedule)
Authorization: ADMIN
.
uploaders
Get upload permissions for repositories
Authorization: ADMIN
.
snapshot_ls
Get list of repository snapshots for a distribution
Authorization: NONE
.
snapshot_create
Create a repository snapshot
Authorization: ADMIN
.
snapshot_delete
Delete a repository snapshot
Authorization: ADMIN
.
debmirror
Make local partial repository mirror via :debpkg:âdebmirrorâ
This may be useful if you plan
on publishing a stripped-down (f.e.,
only certain repos,
only ââstableââ, omit rollbacks) variant of your repo somewhere remote.
Authorization: ADMIN
.
keyring_packages
Build keyring packages
Authorization: ADMIN
.
test_packages
Build test packages
Authorization: ADMIN
.
|
setup |
Create, update or inspect your setup |
Note that Daemon will be stopped before running, cancelling ongoing events (ââBUILDINGââ, ââPACKAGINGââ).
Authorization: ADMIN
.
Note: Uses ââpython3-keyringââ to persist passwords (see ââman 1 keyringââ)