Liking cljdoc? Tell your friends :D

consul.txn


kv-check-indexclj

(kv-check-index tx key index)

Fails the transaction if key does not have a modify index equal to supplied index.

Fails the transaction if key does not have a modify index equal to
supplied index.
sourceraw docstring

kv-check-sessionclj

(kv-check-session tx key session)

Fails the transaction if key is not currently locked by session.

Fails the transaction if key is not currently locked by session.
sourceraw docstring

kv-deleteclj

(kv-delete tx key)

Deletes the key.

Deletes the key.
sourceraw docstring

kv-delete-casclj

(kv-delete-cas tx key index)

Deletes the key with check-and-set semantics. The key will only be deleted if its current modify index matches the supplied index.

Deletes the key with check-and-set semantics. The key will only
be deleted if its current modify index matches the supplied index.
sourceraw docstring

kv-delete-treeclj

(kv-delete-tree tx prefix)

Deletes all keys with a prefix of key.

Deletes all keys with a prefix of key.
sourceraw docstring

kv-getclj

(kv-get tx key)

Gets the key during the transaction. This fails the transaction if the key doesn't exist. The key may not be present in the results if ACLs do not permit it to be read.

Gets the key during the transaction. This fails the transaction if
the key doesn't exist. The key may not be present in the results if
ACLs do not permit it to be read.
sourceraw docstring

kv-get-treeclj

(kv-get-tree tx prefix)

Gets all keys with a prefix of key during the transaction. This does not fail the transaction if the key doesn't exist. Not all keys may be present in the results if ACLs do not permit them to be read.

Gets all keys with a prefix of key during the transaction. This does
not fail the transaction if the key doesn't exist. Not all keys may be
present in the results if ACLs do not permit them to be read.
sourceraw docstring

kv-lockclj

(kv-lock tx key value session & {:keys [flags] :as optional})

Unlocks the key with the given Session. The key will only release the lock if the session is valid and currently has it locked.

Unlocks the key with the given Session. The key will only release
the lock if the session is valid and currently has it locked.
sourceraw docstring

kv-setclj

(kv-set tx key value & {:keys [flags] :as optional})

Sets the key to the given value

Sets the key to the given value
sourceraw docstring

kv-set-casclj

(kv-set-cas tx key value index & {:keys [flags] :as optional})

Sets the key ot the given value with check-and-set semantics. The key will only be set if its current modify index matches the supplied index

Sets the key ot the given value with check-and-set semantics.
The key will only be set if its current modify index matches the
supplied index
sourceraw docstring

kv-unlockclj

(kv-unlock tx key value session & {:keys [flags] :as optional})

Gets the key during the transaction. This fails the transaction if the key doesn't exist. The key may not be present in the results if ACLs do not permit it to be read.

Gets the key during the transaction. This fails the transaction if
the key doesn't exist. The key may not be present in the results if
ACLs do not permit it to be read.
sourceraw docstring

putclj

(put conn f)
(put conn
     {:keys [dc token stale consistent string?]
      :or {stale? false consistent? false string? true}
      :as params}
     f)

Starts an atomic transaction. Available in Consul 0.7 and later.

Parameters:

:dc - Optional data center in which to run the transaction, defaults agent's data center. :token - The ACL token :string? - Converts the value returned into a string, if the result has a value.

Starts an atomic transaction. Available in Consul 0.7 and later.

Parameters:

:dc      - Optional data center in which to run the transaction, defaults agent's data center.
:token   - The ACL token
:string? - Converts the value returned into a string, if the result has a value.
sourceraw docstring

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

× close