mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
25 lines
468 B
Go
25 lines
468 B
Go
|
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
|
||
|
}
|