Liking cljdoc? Tell your friends :D

com.eldrix.hermes.download


available-mlds-distributionsclj

(available-mlds-distributions)
(available-mlds-distributions packages)
source

distributionclj

(distribution id)
(distribution id local)

Returns the distribution with the given identifier. Avoids network calls for locally known distributions, but checks online providers if not found.

Returns the distribution with the given identifier. Avoids network calls
for locally known distributions, but checks online providers if not found.
sourceraw docstring

downloadclj

(download nm params)

Download the named distribution. Parameters:

  • nm : name of the provider e.g. "uk.nhs/sct-clinical"
  • parameters : a map of parameters

The parameters will depend on the exact nature of the provider. Returns the java.nio.file.Path of the directory containing unzipped files.

Download the named distribution.
Parameters:
- nm         : name of the provider   e.g. "uk.nhs/sct-clinical"
- parameters : a map of parameters

The parameters will depend on the exact nature of the provider.
Returns the java.nio.file.Path of the directory containing unzipped files.
sourceraw docstring

download-from-mldsclj

(download-from-mlds package-id {:keys [username password release-date]})

Download the MLDS package specified.

Download the MLDS package specified.
sourceraw docstring

download-from-trudclj

(download-from-trud item-identifier
                    {:keys [api-key cache-dir progress release-date]})

Download an item from TRUD Parameters:

  • item-identifier : item wanted, (e.g. 101)
  • config: a map containing: :api-key : path to file containing TRUD api-key (e.g."/var/hermes/api-key.txt") :cache-dir : TRUD download cache directory (e.g. "/tmp/trud") :progress : print progress? :release-date : (optional) an ISO 8601 date e.g. "2022-02-03" Returns TRUD metadata about the item specified. See com.eldrix.trud.core/get-latest for information about return value.
Download an item from TRUD
Parameters:
- item-identifier : item wanted, (e.g. 101)
- config: a map containing:
  :api-key : path to file containing TRUD api-key (e.g."/var/hermes/api-key.txt")
  :cache-dir : TRUD download cache directory (e.g. "/tmp/trud")
  :progress  : print progress?
  :release-date : (optional) an ISO 8601 date e.g. "2022-02-03"
Returns TRUD metadata about the item specified.
See com.eldrix.trud.core/get-latest for information about return value.
sourceraw docstring

download-from-trud*clj

(download-from-trud* item-identifier)

Returns a function that will download and unzip a release from TRUD.

Returns a function that will download and unzip a release from TRUD.
sourceraw docstring

download-mlds-release-fileclj

(download-mlds-release-file
  username
  password-file
  parent-dir
  {id :releaseFileId url :clientDownloadUrl label :label :as release-file})

Download an MLDS release file into the 'parent-dir' directory

Download an MLDS release file into the 'parent-dir' directory
sourceraw docstring

download-mlds-release-filesclj

(download-mlds-release-files username
                             password
                             {:keys [releaseVersionId releaseFiles]
                              :as release-version})

Download all release files for a release version, automatically unzipping any zip files. Returns a [[java.io.File]] for the parent directory to which all importable release files will be found.

Download all release files for a release version, automatically unzipping any
zip files. Returns a [[java.io.File]] for the parent directory to which all
importable release files will be found.
sourceraw docstring

http-optsclj

Default HTTP client options

Default HTTP client options
sourceraw docstring

label->sclj

(label->s s)
source

make-mlds-idclj

(make-mlds-id {:keys [member releasePackageId]})
source

mlds-base-urlclj

source

mlds-packagesclj

(mlds-packages)

Return all MLDS packages for all members.

Return all MLDS packages for all members.
sourceraw docstring

(print-providers)

Placeholder for a more sophisticated future method of printing available providers.

Placeholder for a more sophisticated future method of printing available
providers.
sourceraw docstring

trud-distributionsclj

source

zip-file?clj

(zip-file? f)

Can 'f' be read as a zip file? Parameters:

  • f : anything coercible by [[clojure.java.io/file]].
Can 'f' be read as a zip file?
Parameters:
- f : anything coercible by [[clojure.java.io/file]].
sourceraw docstring

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

× close