[−][src]Trait krecik::checks::check::Checks
Checks trait
Required methods
fn load(name: &str) -> Result<T, Error>
Load check from any source
fn execute(&self) -> History
Execute loaded checks
Provided methods
fn check_ssl_expire(
domain_name: &str,
domain_expectation: DomainExpectation
) -> Story
domain_name: &str,
domain_expectation: DomainExpectation
) -> Story
Check SSL certificate expiration using OpenSSL function
fn check_domains(domains: Option<Domains>) -> History
Check domains
fn find_code_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract code validation from validations
fn find_content_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract content validation from validations
fn find_content_length_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract content length validation from validations
fn find_address_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
page_expectations: &[PageExpectation]
) -> &PageExpectation
Find and extract address validation from validations
fn list_of_headers(headers: Option<Vec<String>>) -> List
Build headers List for Curl
fn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler
Load page check handler
fn process_page_handler(
page_check: &Page,
handler: CurlHandler,
multi: &Multi
) -> History
page_check: &Page,
handler: CurlHandler,
multi: &Multi
) -> History
Process Curl page requests using given handler
fn handle_page_content_expectation(
url: &str,
raw_page_content: &str,
expected_content: &PageExpectation
) -> Story
url: &str,
raw_page_content: &str,
expected_content: &PageExpectation
) -> Story
Build a Story from a Length PageExpectation
fn handle_page_length_expectation(
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation
) -> Story
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation
) -> Story
Build a Story from a Length PageExpectation
fn handle_page_address_expectation(
url: &str,
address: &str,
expected_address: &PageExpectation
) -> Story
url: &str,
address: &str,
expected_address: &PageExpectation
) -> Story
Build a Story from a Address PageExpectation
fn handle_page_httpcode_expectation(
url: &str,
response_code: Result<u32, Error>,
expected_code: &PageExpectation
) -> Story
url: &str,
response_code: Result<u32, Error>,
expected_code: &PageExpectation
) -> Story
Build a Story from a HttpCode PageExpectation
fn check_pages(pages: Option<Pages>) -> History
Check pages