Gcloud
Gcloud provides an elixir client for communicating with the google cloud services API.
To see how much of the API we've implemented look at TODOS.md.
Installation
If available in Hex, the package can be installed
by adding gcloud to your list of dependencies in mix.exs:
def deps do
[
{:gcloud, "~> 0.0.1"}
]
endUsage
You will need to create a service account and download that users credentials from the google cloud console.
Save that file into config/credentials.json. You can have different files loaded based on your environments.
Now here's an example of listing your buckets over the storage API, for more examples see the documentation.
iex> client = Gcloud.Storage.Client.create()
iex> Gcloud.Storage.Bucket.list!(client)Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/gcloud.