CDN dispatcher that routes to the appropriate CDN adapter module
based on the client's cdn.module configuration.
This module is the single entry point for all CDN operations. It
delegates to the module stored in ExOss.Client.CDN.module, which is
resolved at client construction time from the :provider atom.
Supported CDN Providers
:cloudfront— AWS CloudFront (seeExOss.CDN.CloudFront):qiniu— Qiniu CDN (seeExOss.CDN.Qiniu)
Adding a New CDN Provider
- Create a module implementing
ExOss.CDN.Behaviour - In
ExOss.Client, add a mapping from your provider atom to the module - In
ExOss.Client.CDN, add the provider atom to the validation list
Summary
Functions
@spec authorize_download_url( ExOss.Client.Client.t(), binary(), binary(), non_neg_integer(), keyword() ) :: binary()
@spec upload_credential( ExOss.Client.Client.t(), binary(), binary(), non_neg_integer() ) :: ExOss.UploadCredential.t()