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

Same as build(definition, version, meta, []).

Link to this function

endpoint(opts \\ [])

View Source
endpoint(Keyword.t()) :: String.t()

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.

Link to this function

signed?(opts \\ [])

View Source
signed?(Keyword.t()) :: boolean()

Determines whether or not the URL should be signed. Assumes the key for the option is :signed.