Skip to main content

build

Function build 

Source
pub fn build(
    contents: &Contents,
    files: &TlsFiles,
    (worker_name, ui_name): (&str, &str),
) -> Result<Configs, TlsError>
Expand description

Builds the configurations from contents (read from files, named in errors); workers’ certificates must name worker_name.

§Errors

TlsError when a file holds no certificate or key, the key doesn’t match the certificate, or worker_name isn’t a name.