View Source GcsSignedUrl.Client (gcs_signed_url v0.4.6)
Defines Google Cloud Storage Signed Url Client
Link to this section Summary
Functions
Creates a PEM binary from the given client's private_key and decodes it.
Initialize GcsSignedUrl.Client with given map, or load a file if called with a path string.
Initialize GcsSignedUrl.Client using a config file.
Link to this section Types
Link to this section Functions
Creates a PEM binary from the given client's private_key and decodes it.
Initialize GcsSignedUrl.Client with given map, or load a file if called with a path string.
examples
Examples
iex> service_account = service_account_json_string |> Jason.decode!
iex> GcsSignedUrl.Client.load(service_account)
%GcsSignedUrl.Client{...}
iex> GcsSignedUrl.Client.load("/home/alexandrubagu/config/google.json")
%GcsSignedUrl.Client{...}
Initialize GcsSignedUrl.Client using a config file.
examples
Examples
iex>
iex> GcsSignedUrl.Client.load_from_file("/home/alexandrubagu/config/google.json")
%GcsSignedUrl.Client{...}