View Source CloudfrontSigner.DistributionRegistry (cloudfront_signer v1.0.0)

Agent to store and fetch cloudfront distributions, to avoid expensive runtime pem decodes

Summary

Functions

Returns a specification to start this module under a supervisor.

Gets a distribution from the registry. If not found, creates it from config and caches it.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_distribution(scope, key)

@spec get_distribution(atom(), atom()) :: CloudfrontSigner.Distribution.t()

Gets a distribution from the registry. If not found, creates it from config and caches it.

start_link(opts)