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