HostCreateParams

Struct HostCreateParams 

Source
pub struct HostCreateParams {
Show 32 fields pub file: Option<String>, pub num_hosts: Option<u16>, pub provider: CloudProvider, pub retries: Option<u64>, pub scope: Option<HostScope>, pub timeout_setup_secs: Option<u64>, pub timeout_teardown_secs: Option<u64>, pub ami: Option<String>, pub aws_access_key_id: Option<String>, pub aws_secret_access_key: Option<String>, pub device_name: Option<String>, pub distro: Option<String>, pub ebs_block_device: Option<EbsDevice>, pub instance_type: Option<String>, pub ipv6: Option<bool>, pub region: Option<String>, pub security_group_ids: Option<Vec<String>>, pub spot: Option<bool>, pub subnet_id: Option<String>, pub userdata_file: Option<String>, pub userdata_command: Option<String>, pub key_name: Option<String>, pub image: Option<String>, pub command: Option<String>, pub publish_ports: Option<bool>, pub registry: Option<RegistrySettings>, pub background: Option<bool>, pub container_wait_timeout_secs: Option<u64>, pub pool_frequency_secs: Option<u64>, pub stdout_file_name: Option<String>, pub stderr_file_name: Option<String>, pub environment_vars: Option<HashMap<String, String>>,
}
Expand description

Parameters describing how to start a new host from a task.

Fields§

§file: Option<String>

Name of a file containing all the parameters.

§num_hosts: Option<u16>

Number of hosts to start, between 1 and 10 defaults to 1.

§provider: CloudProvider

Cloud Provider for host.

§retries: Option<u64>

How many times Evergreen should try to create this host.

§scope: Option<HostScope>

When Evergreen will tear down the host.

§timeout_setup_secs: Option<u64>

Stop waiting for hosts to be ready when spawning.

§timeout_teardown_secs: Option<u64>

Tear down this host after this many seconds.

§ami: Option<String>

EC2 AMI to start.

§aws_access_key_id: Option<String>

AWS access key ID.

§aws_secret_access_key: Option<String>

AWS secret key.

§device_name: Option<String>

Name of EBS device.

§distro: Option<String>

Evergreen distro to start.

§ebs_block_device: Option<EbsDevice>§instance_type: Option<String>

EC2 Instance type.

§ipv6: Option<bool>

Indicates instance should only have IPv6 address.

§region: Option<String>

EC2 region.

§security_group_ids: Option<Vec<String>>

List of security groups to set.

§spot: Option<bool>

Swap a spot instance.

§subnet_id: Option<String>

Subnet ID for the VPC.

§userdata_file: Option<String>

Path to file to load as EC2 user data on boot.

§userdata_command: Option<String>§key_name: Option<String>

Ec2 Key name.

§image: Option<String>

Docker image to use.

§command: Option<String>

Command to run on the container.

§publish_ports: Option<bool>

make ports available.

§registry: Option<RegistrySettings>

Information of registry to pull image from.

§background: Option<bool>

Set to wait for logs in the background.

§container_wait_timeout_secs: Option<u64>

Time to wait for the container to finish running.

§pool_frequency_secs: Option<u64>

Check for running container and logs at this interval.

§stdout_file_name: Option<String>

Path to write stdout logs from the container.

§stderr_file_name: Option<String>

Path to write stderr logs from the container.

§environment_vars: Option<HashMap<String, String>>

Map of environment variables to pass to container.

Trait Implementations§

Source§

impl Clone for HostCreateParams

Source§

fn clone(&self) -> HostCreateParams

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HostCreateParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for HostCreateParams

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for HostCreateParams

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,