Trait krecik::actors::generic_checker::GenericChecker
source · [−]pub trait GenericChecker {
Show 16 methods
fn check_domains(checks: &[Check]) -> Stories { ... }
fn check_pages(checks: &[Check]) -> Stories { ... }
fn check_ssl_expire(
domain_name: &str,
domain_expectation: DomainExpectation,
notifier: Option<String>
) -> Story { ... }
fn handle_page_length_expectation(
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation,
notifier: Option<String>
) -> Story { ... }
fn find_code_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation { ... }
fn find_content_validations(
page_expectations: &[PageExpectation]
) -> PageExpectations { ... }
fn find_content_length_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation { ... }
fn find_address_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation { ... }
fn produce_curl_response_error(err: CurlError) -> Error { ... }
fn handle_page_content_expectations(
url: &str,
raw_page_content: &str,
expected_contents: &[PageExpectation],
notifier: Option<String>
) -> Stories { ... }
fn handle_page_address_expectation(
url: &str,
address: &str,
expected_address: &PageExpectation,
notifier: Option<String>
) -> Story { ... }
fn handle_page_httpcode_expectation(
url: &str,
connect_oserror: Option<Error>,
response_code: Result<u32, Error>,
expected_code: &PageExpectation,
notifier: Option<String>
) -> Story { ... }
fn process_page_handler(
page_check: &Page,
handler: CurlHandler,
multi: &Multi,
notifier: Option<String>
) -> Stories { ... }
fn list_of_headers(headers: Option<Vec<String>>) -> List { ... }
fn list_of_cookies(headers: Option<Vec<String>>) -> String { ... }
fn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler { ... }
}
Expand description
Trait implementing all helper functions for Curl-driven checks
Provided Methods
sourcefn check_domains(checks: &[Check]) -> Stories
fn check_domains(checks: &[Check]) -> Stories
Executes domain checks, returns Stories
sourcefn check_pages(checks: &[Check]) -> Stories
fn check_pages(checks: &[Check]) -> Stories
Executes page checks, returns Stories
sourcefn check_ssl_expire(
domain_name: &str,
domain_expectation: DomainExpectation,
notifier: Option<String>
) -> Story
fn check_ssl_expire(
domain_name: &str,
domain_expectation: DomainExpectation,
notifier: Option<String>
) -> Story
Check SSL certificate expiration using OpenSSL function
sourcefn handle_page_length_expectation(
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation,
notifier: Option<String>
) -> Story
fn handle_page_length_expectation(
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation,
notifier: Option<String>
) -> Story
Build a Story from a Length PageExpectation
sourcefn find_code_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
fn find_code_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract code validation from validations
sourcefn find_content_validations(
page_expectations: &[PageExpectation]
) -> PageExpectations
fn find_content_validations(
page_expectations: &[PageExpectation]
) -> PageExpectations
Find and extract content validations
sourcefn find_content_length_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
fn find_content_length_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract content length validation from validations
sourcefn find_address_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
fn find_address_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract address validation from validations
sourcefn produce_curl_response_error(err: CurlError) -> Error
fn produce_curl_response_error(err: CurlError) -> Error
Converts CurlError to Error
sourcefn handle_page_content_expectations(
url: &str,
raw_page_content: &str,
expected_contents: &[PageExpectation],
notifier: Option<String>
) -> Stories
fn handle_page_content_expectations(
url: &str,
raw_page_content: &str,
expected_contents: &[PageExpectation],
notifier: Option<String>
) -> Stories
Build a Story from a Length PageExpectation
sourcefn handle_page_address_expectation(
url: &str,
address: &str,
expected_address: &PageExpectation,
notifier: Option<String>
) -> Story
fn handle_page_address_expectation(
url: &str,
address: &str,
expected_address: &PageExpectation,
notifier: Option<String>
) -> Story
Build a Story from a Address PageExpectation
sourcefn handle_page_httpcode_expectation(
url: &str,
connect_oserror: Option<Error>,
response_code: Result<u32, Error>,
expected_code: &PageExpectation,
notifier: Option<String>
) -> Story
fn handle_page_httpcode_expectation(
url: &str,
connect_oserror: Option<Error>,
response_code: Result<u32, Error>,
expected_code: &PageExpectation,
notifier: Option<String>
) -> Story
Build a Story from a HttpCode PageExpectation
sourcefn process_page_handler(
page_check: &Page,
handler: CurlHandler,
multi: &Multi,
notifier: Option<String>
) -> Stories
fn process_page_handler(
page_check: &Page,
handler: CurlHandler,
multi: &Multi,
notifier: Option<String>
) -> Stories
Process Curl page requests using given handler
Build cookies list for Curl
sourcefn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler
fn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler
Load page check handler