pub struct AgentHosts<'a>(/* private fields */);Expand description
Computers that run bots’ tools (see docs/en/computers.md).
Implementations§
Source§impl AgentHosts<'_>
impl AgentHosts<'_>
pub fn list(&self) -> Result<Vec<HostInfo>>
Sourcepub fn create_enrollment(
&self,
name: &str,
valid_minutes: u32,
) -> Result<EnrollmentToken>
pub fn create_enrollment( &self, name: &str, valid_minutes: u32, ) -> Result<EnrollmentToken>
One-time token for marbots-host enroll.
Sourcepub fn bootstrap(&self, options: &BootstrapOptions) -> Result<BootstrapResult>
pub fn bootstrap(&self, options: &BootstrapOptions) -> Result<BootstrapResult>
Installs marbots-host over SSH; the password/key is used for this call only.
pub fn disable(&self, id: &str) -> Result<()>
pub fn enable(&self, id: &str) -> Result<()>
pub fn remove(&self, id: &str) -> Result<()>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AgentHosts<'a>
impl<'a> !UnwindSafe for AgentHosts<'a>
impl<'a> Freeze for AgentHosts<'a>
impl<'a> Send for AgentHosts<'a>
impl<'a> Sync for AgentHosts<'a>
impl<'a> Unpin for AgentHosts<'a>
impl<'a> UnsafeUnpin for AgentHosts<'a>
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