pub struct ExecuteUpdatePayload {
pub host_machine_id: String,
pub update_history_id: Uuid,
pub software_item_id: Uuid,
pub software_item_name: String,
pub to_version: String,
pub detect_version_plugin: Option<PluginAssignment>,
pub execute_update_plugin: PluginAssignment,
pub pre_update_hook_plugins: Vec<PluginAssignment>,
pub post_update_hook_plugins: Vec<PluginAssignment>,
pub release_info: Option<ReleaseInfo>,
pub timeout: Duration,
pub interactive: bool,
}Expand description
Controller -> Agent: Trigger an update.
Fields§
§host_machine_id: StringThe machine_id of the host to run the update on.
For the regular agent (one service = one host), the agent validates that this matches its own machine_id as a defensive sanity check. For the SSH agent (one service = N remote hosts), the agent uses this field to look up the correct SSH credentials and route the operation to the right remote host.
update_history_id: Uuid§software_item_id: Uuid§software_item_name: String§to_version: String§detect_version_plugin: Option<PluginAssignment>Plugin for the detect_version role (for before/after installed-version detection). Absent when no detect_version plugin is configured for this assignment.
execute_update_plugin: PluginAssignmentPlugin for the execute_update role.
pre_update_hook_plugins: Vec<PluginAssignment>Pre-update hook plugins to execute before the update, ordered by priority.
post_update_hook_plugins: Vec<PluginAssignment>Post-update hook plugins to execute after the update, ordered by priority.
release_info: Option<ReleaseInfo>§timeout: DurationTimeout for the update execution.
Wire field name: timeout_seconds (kept for backward compatibility).
interactive: boolWhen true, the agent allocates a PTY and keeps stdin open for forwarding.
Requires the agent to advertise the InteractiveUpdates capability.
Defaults to false for backward compatibility with older agents.
Trait Implementations§
Source§impl Clone for ExecuteUpdatePayload
impl Clone for ExecuteUpdatePayload
Source§fn clone(&self) -> ExecuteUpdatePayload
fn clone(&self) -> ExecuteUpdatePayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecuteUpdatePayload
impl Debug for ExecuteUpdatePayload
Source§impl<'de> Deserialize<'de> for ExecuteUpdatePayload
impl<'de> Deserialize<'de> for ExecuteUpdatePayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ExecuteUpdatePayload
Source§impl PartialEq for ExecuteUpdatePayload
impl PartialEq for ExecuteUpdatePayload
Source§fn eq(&self, other: &ExecuteUpdatePayload) -> bool
fn eq(&self, other: &ExecuteUpdatePayload) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecuteUpdatePayload
impl Serialize for ExecuteUpdatePayload
impl StructuralPartialEq for ExecuteUpdatePayload
Source§impl WireValidate for ExecuteUpdatePayload
impl WireValidate for ExecuteUpdatePayload
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Auto Trait Implementations§
impl Freeze for ExecuteUpdatePayload
impl RefUnwindSafe for ExecuteUpdatePayload
impl Send for ExecuteUpdatePayload
impl Sync for ExecuteUpdatePayload
impl Unpin for ExecuteUpdatePayload
impl UnsafeUnpin for ExecuteUpdatePayload
impl UnwindSafe for ExecuteUpdatePayload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.