View Source Waffle.Storage.Google.UrlV2 (Waffle backend for Google Cloud Storage v0.0.2)
This is an implementation of the v2 URL signing for Google Cloud Storage. See the Google documentation for more details.
The bulk of the major logic is taken from Martide's arc_gcs
work:
https://github.com/martide/arc_gcs.
Link to this section Summary
Functions
Same as build(definition, version, meta, [])
.
Returns the remote asset host. The config key is assumed to be :asset_host
.
Returns the amount of time, in seconds, before a signed URL becomes invalid.
Assumes the key for the option is :expires_in
.
Determines whether or not the URL should be signed. Assumes the key for the
option is :signed
.
Link to this section Functions
@spec build(Waffle.Types.definition(), Waffle.Types.version(), Waffle.Types.meta()) :: String.t()
Same as build(definition, version, meta, [])
.
Returns the remote asset host. The config key is assumed to be :asset_host
.
@spec expiry(Keyword.t()) :: pos_integer()
Returns the amount of time, in seconds, before a signed URL becomes invalid.
Assumes the key for the option is :expires_in
.
Determines whether or not the URL should be signed. Assumes the key for the
option is :signed
.