libnetwork/internal/kvstore: fix some linting issues

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-07-02 14:33:56 +02:00
parent 05988f88b7
commit a373983a86
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -47,7 +47,7 @@ type Store interface {
// Delete the value at the specified key
Delete(key string) error
// Verify if a Key exists in the store
// Exists verifies if a Key exists in the store.
Exists(key string) (bool, error)
// Watch for changes on a key
@ -68,11 +68,11 @@ type Store interface {
// DeleteTree deletes a range of keys under a given directory
DeleteTree(directory string) error
// Atomic CAS operation on a single value.
// AtomicPut performs an atomic CAS operation on a single value.
// Pass previous = nil to create a new key.
AtomicPut(key string, value []byte, previous *KVPair, options *WriteOptions) (bool, *KVPair, error)
// Atomic delete of a single value
// AtomicDelete performs an atomic delete of a single value.
AtomicDelete(key string, previous *KVPair) (bool, error)
// Close the store connection