| Top |
org.opensuse.tukit.Transactionorg.opensuse.tukit.Transaction — Transaction interface |
ExecuteWithOpts (in 's' base, in 's' command, in 'a{sv}' options, out 's' snapshot)ExecuteAndReboot (in 's' base, in 's' command, in 's' rebootmethod, out 's' snapshot)Execute (in 's' base, in 's' command, out 's' snapshot)OpenWithOpts (in 's' base, in 'a{sv}' options, out 's' snapshot)Open (in 's' base, out 's' snapshot)Call (in 's' transaction, in 's' command)CallExt (in 's' transaction, in 's' command)CallWithOpts (in 's' transaction, in 's' command, in 'a{sv}' options)CloseWithOpts (in 's' transaction, in 'a{sv}' options)Close (in 's' transaction)AbortWithOpts (in 's' transaction, in 'a{sv}' options)Abort (in 's' transaction)
TransactionOpened ('s' snapshot)CommandExecuted ('s' snapshot, 'i' returncode, 's' output)Error ('s' snapshot, 'i' returncode, 's' output)
Objects implementing org.opensuse.tukit.Transaction also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
ExecuteWithOpts (in 's' base,
in 's' command,
in 'a{sv}' options,
out 's' snapshot)
Creates a new snapshot and executes the given command. If execution was successful the snapshot will be set as the new snapshot, if the command returned with an error code the snapshot will be discarded.
This command combines the OpenCallCloseAbort
As it can take a long time until a command is executed the command is executed
asynchronously. The actual result is returned either via a
CommandExecutedErrorTransactionOpened
|
The snapshot id to use as a base for the new snapshot.
Can be active to base the snapshot on the currently running system,
default to use the current default snapshot as a base (which may or
may not be identical to active) or any specific existing snapshot id.
|
|
The command to execute. To execute several commands at once a syntax such as
bash -c 'command1; command2' may be used.
|
|
Accepts the following options:
|
|
The id of the new snapshot. Returns as soon the snapshot has been created. |
|
if an error occured before the snapshot could be created - errors after that point
will be communicated via the
|
ExecuteAndReboot (in 's' base,
in 's' command,
in 's' rebootmethod,
out 's' snapshot)
ExecuteWithOptsReboot
option.
|
See ExecuteWithOpts |
|
See ExecuteWithOpts |
|
Sets the Reboot option, for possible values see the corresponding option in
ExecuteWithOpts |
|
See ExecuteWithOpts |
Identical to
ExecuteWithOpts
|
See ExecuteWithOpts |
|
See ExecuteWithOpts |
|
See ExecuteWithOpts |
Creates a new snapshot using the default snapshot manager. The new snapshot id
is returned both as a return value and announced via the
TransactionOpened
|
The snapshot id to use as a base for the new snapshot.
Can be active to base the snapshot on the currently running system,
default to use the current default snapshot as a base (which may or
may not be identical to active) or any specific existing snapshot id.
|
|
Accepts the following options:
|
|
The id of the new snapshot. |
Identical to
OpenWithOpts
|
See OpenWithOpts |
|
See OpenWithOpts |
Execute the given command in the specified snapshot. The snapshot will not automatically be discarded if the command should return with error.
As it can take a long time until a command returns the command is executed
asynchronously. The actual result and output is returned either via a
CommandExecutedError
|
The snapshot id. The snapshot must still be in open state, i.e.
it must not have been finalized with
Close |
|
The command to execute. |
|
if an error occured before the snapshot
could be resumed - errors after that point will be communicated via the
Error |
Replace any standalone occurrence of {} in
command parameter with the snapshot's mount directory and
execute the given command outside of the snapshot in the
running system, but while the update environment is mounted. This may be
useful if the command needs access to the current environment, e.g. to
copy a file from a directory not accessible from within the chroot
environment.
As it can take a long time until a command returns the command is executed
asynchronously. The actual result and output is returned either via a
CommandExecutedError
|
The snapshot id. The snapshot must still be in open state, i.e.
it must not have been finalized with
Close |
|
The command to execute. Any occurence of {} will be
replaced with the (writable) directory of the snapshot.
|
|
if an error occured before the snapshot
could be resumed - errors after that point will be communicated via the
Error |
If called with the CallExt argument see
CallExtCall
|
The snapshot id. The snapshot must still be in open state, i.e.
it must not have been finalized with
Close |
|
The command to execute. If called with the CallExt
option any occurence of {} will be
replaced with the (writable) directory of the snapshot.
|
|
Accepts the following options:
|
|
if an error occured before the snapshot
could be resumed - errors after that point will be communicated via the
Error |
Sets the snapshot as the new default snapshot and prevents any further modification.
|
The snapshot id. |
|
Accepts the following options:
|
Identical to
OpenWithOpts
|
See CloseWithOpts |
Discards the snapshot completely.
|
The snapshot id. The snapshot must still be in open state, i.e. it must
not have been finalized with
Close |
|
Accepts the following options:
|
Discards the snapshot completely.
|
The snapshot id. The snapshot must still be in open state, i.e. it must
not have been finalized with
Close |
Sent when a new snapshot was created with the D-Bus interface. Snapshots created via the command line or API will not trigger this event.
|
The snapshot id. |
Sent when the anyncronously executed commands initiated by the
Execute... or Call... methods return.
|
The snapshot id the command was executed in. |
|
The exit code of the command. |
|
The output (stdout and stderr) of the command while it was executed. |
Any error occuring during the asyncronous execution of commands initiated
with the Execute... or Call... methods
after the method returned is signalled via this signal. The exit code of
the command itself is returned via the
CommandExecuted
|
The snapshot id the error happened in. |
|
The return code of the failing function. |
|
The error message of the failed function. |