pub struct UpgradeRequest {
pub image: String,
pub preserve: bool,
pub stage: bool,
pub force: bool,
pub reboot_mode: UpgradeRebootMode,
}Expand description
Request to upgrade a Talos node.
§Example
use talos_api_rs::resources::UpgradeRequest;
// Upgrade to a specific version
let request = UpgradeRequest::new("ghcr.io/siderolabs/installer:v1.6.0");
// Staged upgrade (downloads image but doesn't apply until reboot)
let request = UpgradeRequest::builder("ghcr.io/siderolabs/installer:v1.6.0")
.stage(true)
.preserve(true)
.build();Fields§
§image: StringThe upgrade image reference.
preserve: boolPreserve data across the upgrade.
stage: boolStage the upgrade (don’t apply immediately).
force: boolForce upgrade even if already on same version.
reboot_mode: UpgradeRebootModeReboot mode.
Implementations§
Trait Implementations§
Source§impl Clone for UpgradeRequest
impl Clone for UpgradeRequest
Source§fn clone(&self) -> UpgradeRequest
fn clone(&self) -> UpgradeRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpgradeRequest
impl Debug for UpgradeRequest
Source§impl From<UpgradeRequest> for UpgradeRequest
impl From<UpgradeRequest> for UpgradeRequest
Source§fn from(req: UpgradeRequest) -> Self
fn from(req: UpgradeRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpgradeRequest
impl RefUnwindSafe for UpgradeRequest
impl Send for UpgradeRequest
impl Sync for UpgradeRequest
impl Unpin for UpgradeRequest
impl UnwindSafe for UpgradeRequest
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request