Liking cljdoc? Tell your friends :D

puppetlabs.services.versioned-code-service.versioned-code-core


execute-code-content-script!clj

(execute-code-content-script! code-content-script environment code-id file-path)

Inputs: [code-content-script :- schema/Str environment :- ps-common/Environment code-id :- ps-common/CodeId file-path :- schema/Str] Returns: InputStream

Given a string path to an executable script and the environment, code-id, and file-path of a desired revision of a file, returns that file as a stream. Does no exception catching: Being unable to compute code content is considered a fatal error and should be handled by calling code appropriately.

Inputs: [code-content-script :- schema/Str environment :- ps-common/Environment code-id :- ps-common/CodeId file-path :- schema/Str]
Returns: InputStream

Given a string path to an executable script and the environment, code-id, and
file-path of a desired revision of a file, returns that file as a stream. Does
no exception catching: Being unable to compute code content is considered a
fatal error and should be handled by calling code appropriately.
sourceraw docstring

execute-code-id-script!clj

(execute-code-id-script! code-id-script environment)

Inputs: [code-id-script :- schema/Str environment :- ps-common/Environment] Returns: schema/Str

Executes code-id-script to determine the code-id for environment. Non-zero return from code-id-script generates an IllegalStateException.

Inputs: [code-id-script :- schema/Str environment :- ps-common/Environment]
Returns: schema/Str

Executes code-id-script to determine the code-id for environment.
Non-zero return from code-id-script generates an IllegalStateException.
sourceraw docstring

execution-error-msgclj

(execution-error-msg cmd e)

Inputs: [cmd :- schema/Str e :- Exception] Returns: schema/Str

Inputs: [cmd :- schema/Str e :- Exception]
Returns: schema/Str
sourceraw docstring

get-current-code-id!clj

(get-current-code-id! code-id-script environment)

Inputs: [code-id-script :- schema/Str environment :- schema/Str] Returns: (schema/maybe String)

Execute the code-id-script and validate its output before returning

Inputs: [code-id-script :- schema/Str environment :- schema/Str]
Returns: (schema/maybe String)

Execute the code-id-script and validate its output before returning
sourceraw docstring

nonzero-msgclj

(nonzero-msg cmd exit-code stdout stderr)

Inputs: [cmd :- schema/Str exit-code :- schema/Int stdout :- schema/Str stderr :- schema/Str] Returns: schema/Str

Inputs: [cmd :- schema/Str exit-code :- schema/Int stdout :- schema/Str stderr :- schema/Str]
Returns: schema/Str
sourceraw docstring

success-with-stderr-msgclj

(success-with-stderr-msg cmd stderr)

Inputs: [cmd :- schema/Str stderr :- schema/Str] Returns: schema/Str

Inputs: [cmd :- schema/Str stderr :- schema/Str]
Returns: schema/Str
sourceraw docstring

validate-config!clj

(validate-config! {:keys [code-id-command code-content-command]})

Inputs: [{:keys [code-id-command code-content-command]} :- (schema/maybe VersionedCodeServiceConfig)]

Validates the versioned-code-service config. The config is considered valid if it is either empty or fully populated.

Inputs: [{:keys [code-id-command code-content-command]} :- (schema/maybe VersionedCodeServiceConfig)]

Validates the versioned-code-service config. The config is considered valid
if it is either empty or fully populated.
sourceraw docstring

VersionedCodeServiceConfigclj

Schema describing the versioned-code-service config settings

Schema describing the versioned-code-service config settings
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