Liking cljdoc? Tell your friends :D

lambdaisland.config


ConfigProvidercljprotocol

-reloadclj

(-reload this)

-sourceclj

(-source this k)

-valueclj

(-value this k)
source

createclj

(create {:keys [prefix env-vars java-system-props local-config xdg-config
                prefix-env prefix-props]
         :as opts
         :or {env-vars true
              java-system-props true
              local-config true
              xdg-config true
              prefix-env true
              prefix-props true}})
source

ensure-aeroclj

(ensure-aero path cache opts)
source

entriesclj

(entries config)
source

env-keyclj

(env-key opts)

The current environment name, as a keyword, for instance :dev, :prod, or :test

Checked in order

  • :env explicitly passed in
  • PREFIX_ENV env var, based on the configured :prefix, uppercased
  • prefix.env Java system property (use Java CLI flag -D, e.g. -Dprefix.env=prod)
  • if env var CI=true then :test (convention used by most CI providers)
  • otherwise: :dev
The current environment name, as a keyword, for instance `:dev`, `:prod`, or `:test`

Checked in order
- `:env` explicitly passed in
- `PREFIX_ENV` env var, based on the configured `:prefix`, uppercased
- `prefix.env` Java system property (use Java CLI flag `-D`, e.g. `-Dprefix.env=prod`)
- if env var `CI=true` then `:test` (convention used by most CI providers)
- otherwise: `:dev`
sourceraw docstring

getclj

(get config k)
source

get-entryclj

(get-entry {:keys [providers values] :as config} k)
source

key->env-varclj

(key->env-var prefix k)

Take the key used to identify a setting or secret, and turn it into a string suitable for use as an environment variable.

  • if the key is already a string it is left untouched
  • otherwise it is assumed to be an ident (symbol or keyword)
  • identifiers are uppercased and munged, as per [[munge]]
  • dashes become underscores
  • if the ident is qualified (has a namespace), two underscores are used to separate name and namespace
Take the key used to identify a setting or secret, and turn it into a string
suitable for use as an environment variable.

- if the key is already a string it is left untouched
- otherwise it is assumed to be an ident (symbol or keyword)
- identifiers are uppercased and munged, as per [[munge]]
- dashes become underscores
- if the ident is qualified (has a namespace), two underscores are used to
  separate name and namespace
sourceraw docstring

new-configclj

(new-config env providers)
source

reload!clj

(reload! config)
source

sourceclj

(source config k)
source

sourcesclj

(sources config)
source

valuesclj

(values config)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close