View Source GoogleCerts.Env (Google Certificates v1.0.0)

Centralized way to access environment variables

Link to this section Summary

Functions

Google API version

OTP Application name

Directory to write certs if GoogleCerts.Env.write_to_disk?/0 is enabled

Filename to write certs if GoogleCerts.Env.write_to_disk?/0 is enabled

Google URI host

Current library version

Library will attempt to load certs from disk

Library will write certs to disk

Link to this section Functions

Specs

api_version() :: integer()

Google API version

  • default: 3
  • System Env: GOOGLE_CERTS_API_VERSION
  • Elixir Config: :api_version

Specs

app() :: atom()

OTP Application name

Specs

auto_start?() :: boolean()

Auto start the GoogleCerts.CertificateCache Agent.

  • default: true
  • System Env: GOOGLE_CERTS_ENABLE_AUTO_START
  • Elixir Config: :auto_start?

Specs

cache_path() :: String.t()

Directory to write certs if GoogleCerts.Env.write_to_disk?/0 is enabled

  • default: Application priv directory
  • System Env: GOOGLE_CERTS_CACHE_FILEPATH
  • Elixir Config: :cache_filepath

Specs

file_name() :: String.t()

Filename to write certs if GoogleCerts.Env.write_to_disk?/0 is enabled

  • default: "google.oauth2.certificates.json"
  • System Env: GOOGLE_CERTS_FILENAME
  • Elixir Config: :filename

Specs

google_host() :: String.t()

Google URI host

  • default: "https://www.googleapis.com"
  • System Env: GOOGLE_CERTS_HOST
  • Elixir Config: :google_certs_host

Specs

library_version() :: binary()

Current library version

Specs

load_from_disk?() :: boolean()

Library will attempt to load certs from disk

  • default: false
  • System Env: GOOGLE_CERTS_ENABLE_LOAD_FROM_DISK
  • Elixir Config: :load_from_disk?

Specs

write_to_disk?() :: boolean()

Library will write certs to disk

  • default: false
  • System Env: GOOGLE_CERTS_ENABLE_WRITE_TO_DISK
  • Elixir Config: :write_to_disk?