Skip to main content

Module external

Module external 

Source
Expand description

Providers that a cloud add-on delivers for a build without that cloud compiled in, the way crate::source::ExternalFetcher serves cloud config sources.

The base Python wheel has no cloud code. When a config names a cloud-only transport (email over Amazon SES, say), the provider hands the provider config and the signal, as JSON, to the sender the opssignal[aws] add-on registered. The add-on runs the same core code with its cloud feature on, through send_blocking.

Traits§

ExternalSender
Delivers one signal through a cloud-only transport. provider is the provider’s name (email), config_json its config and signal_json the signal, both as JSON.

Functions§

cloud_supported
Whether this build can deliver through cloud’s transports, natively or through a registered add-on.
register_cloud_sender
Registers the sender for every cloud-only transport of cloud (aws, gcp or azure). This is what an add-on package does.
send_blocking
Delivers a signal for an add-on, on a throwaway runtime, with errors in the form an ExternalSender returns them. This is what add-on packages call to serve a send.