[][src]Trait krecik::checks::check::Checks

pub trait Checks<T> {
    fn load(name: &str) -> Result<T, Error>;
fn execute(&self) -> History; fn check_ssl_expire(
        domain_name: &str,
        domain_expectation: DomainExpectation
    ) -> Story { ... }
fn check_domains(domains: Option<Domains>) -> History { ... }
fn find_code_validation(
        page_expectations: &[PageExpectation]
    ) -> &PageExpectation { ... }
fn find_content_validation(
        page_expectations: &[PageExpectation]
    ) -> &PageExpectation { ... }
fn find_content_length_validation(
        page_expectations: &[PageExpectation]
    ) -> &PageExpectation { ... }
fn find_address_validation(
        page_expectations: &[PageExpectation]
    ) -> &PageExpectation { ... }
fn list_of_headers(headers: Option<Vec<String>>) -> List { ... }
fn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler { ... }
fn process_page_handler(
        page_check: &Page,
        handler: CurlHandler,
        multi: &Multi
    ) -> History { ... }
fn handle_page_content_expectation(
        url: &str,
        raw_page_content: &str,
        expected_content: &PageExpectation
    ) -> Story { ... }
fn handle_page_length_expectation(
        url: &str,
        raw_page_content: &str,
        expected_content_length: &PageExpectation
    ) -> Story { ... }
fn handle_page_address_expectation(
        url: &str,
        address: &str,
        expected_address: &PageExpectation
    ) -> Story { ... }
fn handle_page_httpcode_expectation(
        url: &str,
        response_code: Result<u32, Error>,
        expected_code: &PageExpectation
    ) -> Story { ... }
fn check_pages(pages: Option<Pages>) -> History { ... } }

Checks trait

Required methods

fn load(name: &str) -> Result<T, Error>

Load check from any source

fn execute(&self) -> History

Execute loaded checks

Loading content...

Provided methods

fn check_ssl_expire(
    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

Find and extract code validation from validations

fn find_content_validation(
    page_expectations: &[PageExpectation]
) -> &PageExpectation

Find and extract content validation from validations

fn find_content_length_validation(
    page_expectations: &[PageExpectation]
) -> &PageExpectation

Find and extract content length validation from validations

fn find_address_validation(
    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

Process Curl page requests using given handler

fn handle_page_content_expectation(
    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

Build a Story from a Length PageExpectation

fn handle_page_address_expectation(
    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

Build a Story from a HttpCode PageExpectation

fn check_pages(pages: Option<Pages>) -> History

Check pages

Loading content...

Implementors

impl Checks<GenCheck> for GenCheck[src]

impl Checks<GenCheck> for PongoHost[src]

Loading content...