(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.
(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.
(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.
(kv-delete-tree tx prefix)
Deletes all keys with a prefix of key.
Deletes all keys with a prefix of key.
(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.
(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.
(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.
(kv-set tx key value & {:keys [flags] :as optional})
Sets the key to the given value
Sets the key to the given value
(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
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close