Waffle.Storage.Google.UrlV2 (Waffle GCS v0.2.0) View Source
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
Specs
build(Waffle.Types.definition(), Waffle.Types.version(), Waffle.Types.meta()) :: String.t()
Same as build(definition, version, meta, [])
.
Specs
Returns the remote asset host. The config key is assumed to be :asset_host
.
Specs
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
.
Specs
Determines whether or not the URL should be signed. Assumes the key for the
option is :signed
.