rasenmaeher_api.cfssl.base

Base helpers etc

Module Contents

Functions

get_result(response)

Get the result part

get_result_cert(response)

Shorthand for checking the response and getting the cert

get_result_bundle(response)

Shorthand for checking the response and getting the cert

base_url()

Construct the base url

ocsprest_base()

Construct the base url for ocsprest

anon_session()

Anonymous session with content-type set

Attributes

LOGGER

DEFAULT_TIMEOUT

LOGGER[source]
DEFAULT_TIMEOUT[source]
exception CFSSLError[source]

Bases: RuntimeError

CFSSL errors

exception NoResult[source]

Bases: CFSSLError, ValueError

Did not get any result

exception ErrorResult[source]

Bases: CFSSLError, ValueError

Did not get any result

exception DBLocked[source]

Bases: CFSSLError

Database is locked, we should probably retry

exception NoValue[source]

Bases: CFSSLError, ValueError

Did not get expected values

async get_result(response)[source]

Get the result part

Parameters:

response (aiohttp.ClientResponse)

Return type:

Any

async get_result_cert(response)[source]

Shorthand for checking the response and getting the cert

Parameters:

response (aiohttp.ClientResponse)

Return type:

str

async get_result_bundle(response)[source]

Shorthand for checking the response and getting the cert

Parameters:

response (aiohttp.ClientResponse)

Return type:

str

base_url()[source]

Construct the base url

Return type:

str

ocsprest_base()[source]

Construct the base url for ocsprest

Return type:

str

async anon_session()[source]

Anonymous session with content-type set

Return type:

aiohttp.ClientSession