package
0.2.18
Repository: https://github.com/rai-project/libkv.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CreateEndpoints creates a list of endpoints given the right scheme.
GetDirectory gets the full directory part of the key to the form: /path/to/ .
Normalize the key for each store to the form: /path/to/key .
SplitKey splits the key to extract path informations.

# Constants

BOLTDB backend.
CONSUL backend.
ETCD backend.
ZK backend.

# Variables

ErrBackendNotSupported is thrown when the backend k/v store is not supported by libkv.
ErrCallNotSupported is thrown when a method is not implemented/supported by the current backend.
ErrCannotLock is thrown when there is an error acquiring a lock on a key.
ErrKeyExists is thrown when the previous value exists in the case of an AtomicPut.
ErrKeyModified is thrown during an atomic operation if the index does not match the one in the store.
ErrKeyNotFound is thrown when the key is not found in the store during a Get operation.
ErrNotReachable is thrown when the API cannot be reached for issuing common store operations.
ErrPreviousNotSpecified is thrown when the previous value is not specified for an atomic operation.

# Structs

ClientTLSConfig contains data for a Client TLS configuration in the form the etcd client wants it.
Config contains the options for a storage client.
KVPair represents {Key, Value, Lastindex} tuple.
LockOptions contains optional request parameters.
WriteOptions contains optional request parameters.

# Interfaces

Locker provides locking mechanism on top of the store.
Store represents the backend K/V storage Each store should support every call listed here.

# Type aliases

Backend represents a KV Store Backend.