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

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

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

Loading content...

Provided methods

pub fn check_ssl_expire(
    domain_name: &str,
    domain_expectation: DomainExpectation
) -> Story
[src]

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]

Find and extract code validation from validations

pub fn find_content_validations(
    page_expectations: &[PageExpectation]
) -> PageExpectations
[src]

Find and extract content validations

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

Find and extract content length validation from validations

pub fn find_address_validation(
    page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]

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]

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]

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]

Build a Story from a Length PageExpectation

pub fn handle_page_address_expectation(
    url: &str,
    address: &str,
    expected_address: &PageExpectation
) -> Story
[src]

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]

Build a Story from a HttpCode PageExpectation

pub fn check_pages(pages: Option<Pages>) -> History[src]

Check pages

Loading content...

Implementors

impl Checks<GenCheck> for GenCheck[src]

impl Checks<PongoHost> for PongoHost[src]

Loading content...