Skip to main content

ExecuteUpdatePayload

Struct ExecuteUpdatePayload 

Source
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: String

The 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: PluginAssignment

Plugin 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: Duration

Timeout for the update execution.

Wire field name: timeout_seconds (kept for backward compatibility).

§interactive: bool

When 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

Source§

fn clone(&self) -> ExecuteUpdatePayload

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExecuteUpdatePayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ExecuteUpdatePayload

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ExecuteUpdatePayload

Source§

impl PartialEq for ExecuteUpdatePayload

Source§

fn eq(&self, other: &ExecuteUpdatePayload) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ExecuteUpdatePayload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ExecuteUpdatePayload

Source§

impl WireValidate for ExecuteUpdatePayload

Source§

fn wire_validate(&self) -> Result<(), WireValidationError>

Validate that all fields are within wire protocol size limits.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more