pub struct BootstrapRequest {
pub recover_etcd: bool,
pub recover_skip_hash_check: bool,
}Expand description
Request to bootstrap the etcd cluster.
Bootstrap initializes the etcd cluster on the first control-plane node. This should only be called ONCE when creating a new cluster.
§Example
use talos_api_rs::resources::BootstrapRequest;
// Standard bootstrap (new cluster)
let request = BootstrapRequest::new();
// Recovery from etcd snapshot
let recovery_request = BootstrapRequest::builder()
.recover_etcd(true)
.build();Fields§
§recover_etcd: boolEnable etcd recovery from a snapshot.
The snapshot must be uploaded via EtcdRecover RPC before calling bootstrap.
recover_skip_hash_check: boolSkip hash verification on the etcd snapshot. Enable this when recovering from a data directory copy.
Implementations§
Source§impl BootstrapRequest
impl BootstrapRequest
Sourcepub fn builder() -> BootstrapRequestBuilder
pub fn builder() -> BootstrapRequestBuilder
Create a builder for customizing the bootstrap request.
Sourcepub fn recovery() -> Self
pub fn recovery() -> Self
Create a recovery bootstrap request.
Use this when restoring from an etcd snapshot.
Sourcepub fn recovery_skip_hash() -> Self
pub fn recovery_skip_hash() -> Self
Create a recovery bootstrap request that skips hash verification.
Use this when recovering from a data directory copy.
Trait Implementations§
Source§impl Clone for BootstrapRequest
impl Clone for BootstrapRequest
Source§fn clone(&self) -> BootstrapRequest
fn clone(&self) -> BootstrapRequest
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 BootstrapRequest
impl Debug for BootstrapRequest
Source§impl Default for BootstrapRequest
impl Default for BootstrapRequest
Source§fn default() -> BootstrapRequest
fn default() -> BootstrapRequest
Returns the “default value” for a type. Read more
Source§impl From<BootstrapRequest> for BootstrapRequest
impl From<BootstrapRequest> for BootstrapRequest
Source§fn from(req: BootstrapRequest) -> Self
fn from(req: BootstrapRequest) -> Self
Converts to this type from the input type.
impl Copy for BootstrapRequest
Auto Trait Implementations§
impl Freeze for BootstrapRequest
impl RefUnwindSafe for BootstrapRequest
impl Send for BootstrapRequest
impl Sync for BootstrapRequest
impl Unpin for BootstrapRequest
impl UnwindSafe for BootstrapRequest
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