View Source GcsSignedUrl.StringToSign (gcs_signed_url v0.4.6)
Generates the string-to-sign and the URL the signature is being signed.
Link to this section Summary
Functions
Creates the string to sign according to https://cloud.google.com/storage/docs/access-control/signed-urls-v2 and returns it together with a template for the URL that is being signed.
Creates the string to sign according to https://cloud.google.com/storage/docs/authentication/signatures#string-to-sign and returns it together with a template of the URL that is being signed.
Link to this section Types
Link to this section Functions
@spec generate_v2( String.t(), String.t(), String.t(), GcsSignedUrl.sign_v2_opts() ) :: t()
Creates the string to sign according to https://cloud.google.com/storage/docs/access-control/signed-urls-v2 and returns it together with a template for the URL that is being signed.
The URL template contains a placeholder #SIGNATURE# for the actual signature.
@spec generate_v4( String.t(), String.t(), String.t(), GcsSignedUrl.sign_v4_opts() ) :: t()
Creates the string to sign according to https://cloud.google.com/storage/docs/authentication/signatures#string-to-sign and returns it together with a template of the URL that is being signed.
The URL template contains a placeholder #SIGNATURE# for the actual signature.