(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.
(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.
(execution-error-msg cmd e)Inputs: [cmd :- schema/Str e :- Exception] Returns: schema/Str
Inputs: [cmd :- schema/Str e :- Exception] Returns: schema/Str
(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
(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
(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
(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.Schema describing the versioned-code-service config settings
Schema describing the versioned-code-service config settings
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |