pub struct DockerfileParser;Expand description
Parser for Dockerfile files.
Implementations§
Source§impl DockerfileParser
impl DockerfileParser
Sourcepub fn extract_base_images(content: &str) -> Vec<String>
pub fn extract_base_images(content: &str) -> Vec<String>
Extract base images from FROM instructions.
Sourcepub fn extract_run_commands(content: &str) -> Vec<String>
pub fn extract_run_commands(content: &str) -> Vec<String>
Extract RUN commands.
Trait Implementations§
Source§impl ContentParser for DockerfileParser
impl ContentParser for DockerfileParser
Auto Trait Implementations§
impl Freeze for DockerfileParser
impl RefUnwindSafe for DockerfileParser
impl Send for DockerfileParser
impl Sync for DockerfileParser
impl Unpin for DockerfileParser
impl UnwindSafe for DockerfileParser
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