Liking cljdoc? Tell your friends :D

puppetlabs.dujour.version-check


check-for-updateclj

(check-for-update request-values update-server-url)

Inputs: [request-values :- RequestValues update-server-url :- (schema/maybe schema/Str)]

Check whether a newer version of the software is available. It does not submit any extra data beyond the product name and version. If a newer version is available it will log a message to that effect and return a map describing the newer version (see UpdateInfo).

Inputs: [request-values :- RequestValues update-server-url :- (schema/maybe schema/Str)]

Check whether a newer version of the software is available. It does not
submit any extra data beyond the product name and version. If a newer version
is available it will log a message to that effect and return a map describing
the newer version (see `UpdateInfo`).
sourceraw docstring

check-for-updates!cljdeprecated

(check-for-updates! request-values update-server-url)
(check-for-updates! request-values update-server-url callback-fn)

Check whether a newer version of the software is available and submit telemetry data. This is deprecated in favor of check-for-update and send-telemetry which separate these two operations (since users may want to opt out of telemetry while still being notified of new versions).

Check whether a newer version of the software is available and submit
telemetry data. This is deprecated in favor of `check-for-update` and
`send-telemetry` which separate these two operations (since users may want to
opt out of telemetry while still being notified of new versions).
sourceraw docstring

default-group-idclj

source

default-update-server-urlclj

source

get-coordsclj

(get-coords product-name)

Inputs: [product-name :- ProductName] Returns: ProductCoords

Inputs: [product-name :- ProductName]
Returns: ProductCoords
sourceraw docstring

get-hashclj

(get-hash data)

Returns a SHA-512 encoded value of the given string.

Returns a SHA-512 encoded value of the given string.
sourceraw docstring

get-version-stringclj

(get-version-string product-name)
(get-version-string product-name group-id)
source

ProductCoordsclj

source

ProductNameclj

source

RequestResultclj

source

RequestValuesclj

source

schema-match?clj

(schema-match? schema obj)
source

send-telemetryclj

(send-telemetry request-values update-server-url)

Inputs: [request-values :- RequestValues update-server-url :- schema/Str]

Submit telemetry data. This will submit a map of data to the telemetry service at the given url.

Inputs: [request-values :- RequestValues update-server-url :- schema/Str]

Submit telemetry data. This will submit a map of data to the telemetry
service at the given url.
sourceraw docstring

update-infoclj

(update-info request-values update-server-url)

Inputs: [request-values :- RequestValues update-server-url :- schema/Str] Returns: UpdateInfo

Make a request to the puppetlabs server to determine the latest available version. Attempts a POST request before falling back to a GET request. Returns the JSON object received from the server, which is expected to be a map containing keys :version, :newer, and :link. Returns nil if the request does not succeed for some reason.

Inputs: [request-values :- RequestValues update-server-url :- schema/Str]
Returns: UpdateInfo

Make a request to the puppetlabs server to determine the latest available
version. Attempts a POST request before falling back to a GET request.
Returns the JSON object received from the server, which is expected to be
a map containing keys `:version`, `:newer`, and `:link`. Returns `nil` if
the request does not succeed for some reason.
sourceraw docstring

update-info-postclj

(update-info-post request-values update-server-url)

Inputs: [request-values :- RequestValues update-server-url :- schema/Str] Returns: RequestResult

Make a POST request to the puppetlabs server to determine the latest available version.

Inputs: [request-values :- RequestValues update-server-url :- schema/Str]
Returns: RequestResult

Make a POST request to the puppetlabs server to determine the latest available
version.
sourceraw docstring

UpdateInfoclj

source

validate-config!clj

(validate-config! request-values update-server-url)
source

versionclj

Get the version number of this installation.

Get the version number of this installation.
sourceraw docstring

version*clj

(version* group-id artifact-id)
(version* group-id artifact-id default)

Inputs: ([group-id artifact-id] [group-id artifact-id default]) Returns: schema/Str

Get the version number of this installation.

Inputs: ([group-id artifact-id] [group-id artifact-id default])
Returns: schema/Str

Get the version number of this installation.
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