Liking cljdoc? Tell your friends :D

hive-compose.promote.target

Pure: a target names services or native compose profiles of a configured Project; a section is the Profile that runs exactly what it names, closed over the compose file's depends_on.

Pure: a target names services or native compose profiles of a configured
Project; a section is the Profile that runs exactly what it names, closed
over the compose file's depends_on.
raw docstring

apply-call-envclj

(apply-call-env remembered call)

Remembered call env remembered after the env call of one call: a value sets its var, a nil forgets it (a nil for a var not remembered is a no-op). References stay references. Pure.

Remembered call env `remembered` after the env `call` of one call: a value
sets its var, a nil forgets it (a nil for a var not remembered is a
no-op). References stay references. Pure.
sourceraw docstring

declared-envclj

(declared-env settings id)
(declared-env settings id inputs-from)

The env section or preset id declares in settings now: a configured preset's :profile/env, else the :project/env of the project a <project>/<names> section belongs to; nil when neither is configured. inputs-from (a snapshot's :profile/inputs-from): the section it runs from declares instead.

The env section or preset `id` declares in `settings` now: a configured
preset's :profile/env, else the :project/env of the project a
`<project>/<names>` section belongs to; nil when neither is configured.
`inputs-from` (a snapshot's :profile/inputs-from): the section it runs
from declares instead.
sourceraw docstring

effective-profileclj

(effective-profile p {:keys [holder call-env]})

The Profile an engine call on p runs with: its dir, files and env. Pure.

holder: the Profile of the one live section that holds p's services (nil when none). The call then runs with that section's compose inputs: its dir, files, compose name and native profiles replace p's (a key it lacks is dropped, so compose uses its default) and its env replaces p's own, so no project value the section did not run with leaks into the recreate. Env precedence, weakest to strongest: the base env: holder's :profile/env when there is a holder, else p's own (a target section: its project's :project/env; a preset: its own :profile/env, which already beats the project's: a preset never inherits :project/env) < the remembered :profile/call-env (holder's, then p's) < call-env, the env of this call. A call env is remembered under :profile/call-env; a nil value in it forgets that var (see apply-call-env), so the base value applies again. The base env must not already carry the remembered layer (see peel-call-env) for a forgotten var to fall back.

The Profile an engine call on `p` runs with: its dir, files and env. Pure.

`holder`: the Profile of the one live section that holds `p`'s services
(nil when none). The call then runs with that section's compose inputs:
its dir, files, compose name and native profiles replace `p`'s (a key it
lacks is dropped, so compose uses its default) and its env replaces `p`'s
own, so no project value the section did not run with leaks into the
recreate.
Env precedence, weakest to strongest:
  the base env: `holder`'s :profile/env when there is a holder, else `p`'s
  own (a target section: its project's :project/env; a preset: its own
  :profile/env, which already beats the project's: a preset never
  inherits :project/env)
  < the remembered :profile/call-env (`holder`'s, then `p`'s)
  < `call-env`, the env of this call.
A call env is remembered under :profile/call-env; a nil value in it
forgets that var (see `apply-call-env`), so the base value applies again.
The base env must not already carry the remembered layer (see
`peel-call-env`) for a forgotten var to fall back.
sourceraw docstring

forget-call-envclj

(forget-call-env snap ks declared)

Snapshot snap with remembered keys ks forgotten: gone from :profile/call-env, and in :profile/env back to their value in declared (or gone when it has none). Pure.

Snapshot `snap` with remembered keys `ks` forgotten: gone from
:profile/call-env, and in :profile/env back to their value in `declared`
(or gone when it has none). Pure.
sourceraw docstring

inputs-summaryclj

(inputs-summary p)

{:dir :files :env-keys :call-env-keys :env-src} of Profile p for status: the checkout and files it runs with, the NAMES of its env vars and of those a call gave it (remembered, see with-call-env), and the value of the *_SRC ones that look like a path (a reference as its rendering, never read; any other value by name only).

{:dir :files :env-keys :call-env-keys :env-src} of Profile `p` for status:
the checkout and files it runs with, the NAMES of its env vars and of those
a call gave it (remembered, see `with-call-env`), and the value of the
`*_SRC` ones that look like a path (a reference as its rendering, never
read; any other value by name only).
sourceraw docstring

parseclj

(parse s)

{:project id-or-nil :names [name ..]} of "sisf-web", "sisf/sisf-web" or "sisf/sisf-web,sisf-crm" ("+" separates too).

{:project id-or-nil :names [name ..]} of "sisf-web", "sisf/sisf-web" or
"sisf/sisf-web,sisf-crm" ("+" separates too).
sourceraw docstring

peel-call-envclj

(peel-call-env snap declared)

Snapshot snap, whose :profile/env holds its remembered call env, with that layer taken off: each remembered var gets its value in declared, or goes when declared has none. :profile/call-env is kept. Pure.

Snapshot `snap`, whose :profile/env holds its remembered call env, with
that layer taken off: each remembered var gets its value in `declared`, or
goes when `declared` has none. :profile/call-env is kept. Pure.
sourceraw docstring

profile-membersclj

(profile-members with-profile always-on)

Services a native compose profile adds over the always-on ones.

Services a native compose profile adds over the always-on ones.
sourceraw docstring

project-profileclj

(project-profile project)

Profile addressing the whole of project, with no service subset.

Profile addressing the whole of `project`, with no service subset.
sourceraw docstring

rebase-sectionclj

(rebase-section old-proj new-proj snap)

Snapshot snap of an active section re-based on its project as configured now (new-proj; old-proj as it was when the snapshot was taken): dir, files, compose name, programs, env, TTL and idle action follow new-proj. The id, services and per-call flags stay; env entries the call added over old-proj's env stay over new-proj's.

A snapshot that runs from another section's checkout (:profile/inputs-from) keeps its dir, files, compose name and env: only programs, TTL, idle action and activity follow the project.

Snapshot `snap` of an active section re-based on its project as configured
now (`new-proj`; `old-proj` as it was when the snapshot was taken): dir,
files, compose name, programs, env, TTL and idle action follow `new-proj`.
The id, services and per-call flags stay; env entries the call added over
`old-proj`'s env stay over `new-proj`'s.

A snapshot that runs from another section's checkout
(:profile/inputs-from) keeps its dir, files, compose name and env: only
programs, TTL, idle action and activity follow the project.
sourceraw docstring

remember-call-envclj

(remember-call-env snap call declared)

Snapshot snap after a call with env call that recreated its services: the call's values remembered over the section's, a nil forgetting that var (back to its value in declared, or gone). Pure.

Snapshot `snap` after a call with env `call` that recreated its services:
the call's values remembered over the section's, a nil forgetting that var
(back to its value in `declared`, or gone). Pure.
sourceraw docstring

sectionclj

(section project names services)

The Profile of the section of project that names resolved to services.

The Profile of the section of `project` that `names` resolved to `services`.
sourceraw docstring

section-idclj

(section-id project-id names)

<project>/<name>[+<name>..], names sorted so one section has one id.

`<project>/<name>[+<name>..]`, names sorted so one section has one id.
sourceraw docstring

set-valuesclj

(set-values env)

env without its nil values: what compose is given.

`env` without its nil values: what compose is given.
sourceraw docstring

src-var?clj

(src-var? k)

True when env var k names the path of code under test (*_SRC): status shows its value, every other var by name only.

True when env var `k` names the path of code under test (`*_SRC`): status
shows its value, every other var by name only.
sourceraw docstring

stale-call-env-keysclj

(stale-call-env-keys old-declared new-declared remembered)

Sorted keys of remembered call env remembered whose DECLARED value changed from old-declared to new-declared (added, removed or edited): the edit is the newer intent, so a reload forgets them. A key whose declared value did not change stays. Pure.

Sorted keys of remembered call env `remembered` whose DECLARED value
changed from `old-declared` to `new-declared` (added, removed or edited):
the edit is the newer intent, so a reload forgets them. A key whose
declared value did not change stays. Pure.
sourceraw docstring

unknown-service?clj

(unknown-service? res)

True when res is compose refusing a service name it does not define.

True when `res` is compose refusing a service name it does not define.
sourceraw docstring

with-call-envclj

(with-call-env p env)

p with call env env over its own, and env remembered under :profile/call-env, so a later up, restart or reap of the same section re-applies it instead of falling back to weaker env. A nil value forgets that var from the remembered env. References stay references. p itself when env is empty.

`p` with call env `env` over its own, and `env` remembered under
`:profile/call-env`, so a later up, restart or reap of the same section
re-applies it instead of falling back to weaker env. A nil value forgets
that var from the remembered env. References stay references. `p` itself
when `env` is empty.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close