pub struct CloudInitProvisioner { /* private fields */ }Expand description
A CloudProvisioner that drives operator-supplied shell commands.
Implementations§
Source§impl CloudInitProvisioner
impl CloudInitProvisioner
Sourcepub fn new(config: CloudInitConfig) -> Self
pub fn new(config: CloudInitConfig) -> Self
Create a new provisioner from config.
Sourcepub fn render_user_data(&self, shape: &NodeShape) -> String
pub fn render_user_data(&self, shape: &NodeShape) -> String
Render the cloud-init user-data document for shape.
Substitutes {leader_addr}, {join_token}, and {labels} (the latter
from shape.labels) into the configured
user_data_template.
Trait Implementations§
Source§impl Clone for CloudInitProvisioner
impl Clone for CloudInitProvisioner
Source§fn clone(&self) -> CloudInitProvisioner
fn clone(&self) -> CloudInitProvisioner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CloudProvisioner for CloudInitProvisioner
impl CloudProvisioner for CloudInitProvisioner
Source§fn provision<'life0, 'life1, 'async_trait>(
&'life0 self,
shape: &'life1 NodeShape,
) -> Pin<Box<dyn Future<Output = Result<NodeHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn provision<'life0, 'life1, 'async_trait>(
&'life0 self,
shape: &'life1 NodeShape,
) -> Pin<Box<dyn Future<Output = Result<NodeHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provision a node matching
shape. Read moreSource§fn terminate<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ProviderNodeId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn terminate<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ProviderNodeId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Terminate the node identified by
id. Read moreSource§fn describe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<NodeHandle>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn describe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<NodeHandle>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Enumerate the nodes currently known to this provisioner. Read more
Source§fn capacity_types(&self) -> &[CapacityType]
fn capacity_types(&self) -> &[CapacityType]
The capacity types this provisioner supports.
Auto Trait Implementations§
impl Freeze for CloudInitProvisioner
impl RefUnwindSafe for CloudInitProvisioner
impl Send for CloudInitProvisioner
impl Sync for CloudInitProvisioner
impl Unpin for CloudInitProvisioner
impl UnsafeUnpin for CloudInitProvisioner
impl UnwindSafe for CloudInitProvisioner
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