pub struct ImageTemplateShellValidator {
pub image_template_in_vm_validator: ImageTemplateInVmValidator,
pub script_uri: Option<String>,
pub sha256_checksum: Option<String>,
pub inline: Vec<String>,
}Expand description
Runs the specified shell script during the validation phase (Linux). Corresponds to Packer shell provisioner. Exactly one of ‘scriptUri’ or ‘inline’ can be specified.
Fields§
§image_template_in_vm_validator: ImageTemplateInVmValidator§script_uri: Option<String>URI of the shell script to be run for validation. It can be a github link, Azure Storage URI, etc
sha256_checksum: Option<String>SHA256 checksum of the shell script provided in the scriptUri field
inline: Vec<String>Array of shell commands to execute
Implementations§
Source§impl ImageTemplateShellValidator
impl ImageTemplateShellValidator
pub fn new(image_template_in_vm_validator: ImageTemplateInVmValidator) -> Self
Trait Implementations§
Source§impl Clone for ImageTemplateShellValidator
impl Clone for ImageTemplateShellValidator
Source§fn clone(&self) -> ImageTemplateShellValidator
fn clone(&self) -> ImageTemplateShellValidator
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 ImageTemplateShellValidator
impl Debug for ImageTemplateShellValidator
Source§impl<'de> Deserialize<'de> for ImageTemplateShellValidator
impl<'de> Deserialize<'de> for ImageTemplateShellValidator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ImageTemplateShellValidator
Auto Trait Implementations§
impl Freeze for ImageTemplateShellValidator
impl RefUnwindSafe for ImageTemplateShellValidator
impl Send for ImageTemplateShellValidator
impl Sync for ImageTemplateShellValidator
impl Unpin for ImageTemplateShellValidator
impl UnwindSafe for ImageTemplateShellValidator
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