k3s/vendor/github.com/ibuildthecloud/kvsql/clientv3/driver/client.go

25 lines
468 B
Go
Raw Normal View History

2019-01-12 04:58:27 +00:00
package driver
import (
"errors"
)
var (
ErrExists = errors.New("key exists")
ErrNotExists = errors.New("key and or Revision does not exists")
ErrRevisionMatch = errors.New("revision does not match")
)
type KeyValue struct {
ID int64
Key string
Value []byte
OldValue []byte
OldRevision int64
CreateRevision int64
Revision int64
TTL int64
Version int64
Del int64
}