pub struct BootstrapOptions { /* private fields */ }Expand description
SSH bootstrap of an agent host. The password/key is used for that call only.
Implementations§
Source§impl BootstrapOptions
impl BootstrapOptions
Sourcepub fn new(
host: impl Into<String>,
user: impl Into<String>,
server_url: impl Into<String>,
) -> Self
pub fn new( host: impl Into<String>, user: impl Into<String>, server_url: impl Into<String>, ) -> Self
server_url is the address the new host uses to reach this server (LAN address, not localhost).
pub fn password(self, v: impl Into<String>) -> Self
pub fn private_key(self, v: impl Into<String>) -> Self
pub fn name(self, v: impl Into<String>) -> Self
pub fn port(self, v: u16) -> Self
Sourcepub fn update_only(self, v: bool) -> Self
pub fn update_only(self, v: bool) -> Self
Replace the binary and restart, keeping the enrollment.
Trait Implementations§
Source§impl Clone for BootstrapOptions
impl Clone for BootstrapOptions
Source§impl Debug for BootstrapOptions
impl Debug for BootstrapOptions
Auto Trait Implementations§
impl Freeze for BootstrapOptions
impl RefUnwindSafe for BootstrapOptions
impl Send for BootstrapOptions
impl Sync for BootstrapOptions
impl Unpin for BootstrapOptions
impl UnsafeUnpin for BootstrapOptions
impl UnwindSafe for BootstrapOptions
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