Liking cljdoc? Tell your friends :D

monkey.ci.extensions

Functionality for working with script extensions. Extensions are a way for third party libraries to add functionality to scripts, that is easy to activate and can also be used in yaml-type scripts. You could of course also add regular functions to invoke, but this is not easy to use, especially when using container jobs. Extensions do this by registering themselves under a specific namespaced keyword. If this key is found in job properties, the associated extension code is executed. Extensions can be executed before or after a job (or both).

Functionality for working with script extensions.  Extensions are a way
for third party libraries to add functionality to scripts, that is easy
to activate and can also be used in yaml-type scripts.  You could of 
course also add regular functions to invoke, but this is not easy to
use, especially when using container jobs.  Extensions do this by registering
themselves under a specific namespaced keyword.  If this key is found in
job properties, the associated extension code is executed.  Extensions can
be executed before or after a job (or both).
raw docstring

after-interceptorclj

Interceptor that applies the after extensions to the job in the job context. This expects the job context to be present in the event context, with the job and it's execution result added to that context.

Interceptor that applies the `after` extensions to the job in the job context.
This expects the job context to be present in the event context, with the job
and it's execution result added to that context.
sourceraw docstring

after-jobcljmultimethod

source

apply-extensions-afterclj

(apply-extensions-after rt)
(apply-extensions-after rt registered)
source

apply-extensions-beforeclj

(apply-extensions-before rt)
(apply-extensions-before rt registered)
source

before-interceptorclj

Interceptor that applies the before extensions to the job in the job context. This expects the job context to be present in the event context, with the job added to that context.

Interceptor that applies the `before` extensions to the job in the job context.
This expects the job context to be present in the event context, with the job
added to that context.
sourceraw docstring

before-jobcljmultimethod

source

get-configclj

(get-config rt k)

Retrieves configuration for the extension from the job

Retrieves configuration for the extension from the job
sourceraw docstring

new-registerclj

source

registerclj

(register l ext)
source

register!clj

(register! ext)
source

registered-extensionsclj

source

set-valueclj

(set-value rt k v)

Sets the extension value in the job. This value will be stored with the job, so it must be serializable to edn.

Sets the extension value in the job.  This value will be stored with the job, so it
must be serializable to `edn`.
sourceraw docstring

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

× close