ecluse
Safe HaskellNone
LanguageGHC2021

Ecluse.Config.Parser

Synopsis

Documentation

parseHttpUrl :: String -> Value -> Parser Url Source #

An http(s) URL Écluse itself serves or rewrites against (the public URL): the scheme must be http or https (http stays legal for loopback development deployments), and the authority must be dialable by the same extraction the egress gate authorises (hostPortAddress), so a value that cannot name a real listener is refused at load instead of surfacing as rewritten artifact URLs no client can fetch.

parsePort :: String -> Int -> Parser Int Source #

A listener port: 0..65535, where 0 asks the OS for an ephemeral port.

parseCodeArtifactDuration :: String -> Value -> Parser Natural Source #

A CodeArtifact authorisation-token duration in seconds, bounded to the range the service accepts (900..43200); an out-of-range value would only fail later, at the first mint, with the mirror queue already accepting work.