pub struct PenetrationTestFramework { /* private fields */ }Expand description
Penetration testing framework
Implementations§
Source§impl PenetrationTestFramework
impl PenetrationTestFramework
Sourcepub fn start_test(
&mut self,
test_name: String,
target_scope: Vec<String>,
) -> Result<String>
pub fn start_test( &mut self, test_name: String, target_scope: Vec<String>, ) -> Result<String>
Start a new penetration test
Sourcepub async fn execute_test(
&mut self,
test_id: &str,
events: Vec<Event>,
) -> Result<()>
pub async fn execute_test( &mut self, test_id: &str, events: Vec<Event>, ) -> Result<()>
Execute penetration test scenarios
Sourcepub fn get_test_results(&self, test_id: &str) -> Result<&PenetrationTest>
pub fn get_test_results(&self, test_id: &str) -> Result<&PenetrationTest>
Get test results
Sourcepub fn list_tests(&self) -> Vec<&PenetrationTest>
pub fn list_tests(&self) -> Vec<&PenetrationTest>
List all tests
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PenetrationTestFramework
impl RefUnwindSafe for PenetrationTestFramework
impl Send for PenetrationTestFramework
impl Sync for PenetrationTestFramework
impl Unpin for PenetrationTestFramework
impl UnwindSafe for PenetrationTestFramework
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more