Module etcd::kv

source ·
Expand description

etcd’s key-value API.

The term “node” in the documentation for this module refers to a key-value pair or a directory of key-value pairs. For example, “/foo” is a key if it has a value, but it is a directory if there other other key-value pairs “underneath” it, such as “/foo/bar”.

Structs

Options for customizing the behavior of kv::get.
Information about the result of a successful key-value API operation.
An etcd key or directory.
Options for customizing the behavior of kv::watch.

Enums

The type of action that was taken in response to a key value API request.
An error returned by kv::watch.

Functions

Deletes a node only if the given current value and/or current modified index match.
Updates a node only if the given current value and/or current modified index match.
Creates a new key-value pair.
Creates a new empty directory.
Creates a new key-value pair in a directory with a numeric key name larger than any of its sibling key-value pairs.
Deletes a node.
Deletes an empty directory or a key-value pair at the given key.
Gets the value of a node.
Sets the value of a key-value pair.
Sets the key to an empty directory.
Updates an existing key-value pair.
Updates a directory.
Watches a node for changes and returns the new value as soon as a change takes place.