Waffle GCS v0.1.0 Waffle.Storage.Google.UrlV2 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
build(definition, version, meta)
View Sourcebuild(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
.
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
.