tests/framework: Add PutOptions

Put can take a leaseid to associate a value with a lease. This adds the
ability for tests to make use of this.
This commit is contained in:
Danielle Lancashire
2022-03-16 15:26:08 +00:00
parent b7beaf9c62
commit b50f10299b
8 changed files with 25 additions and 11 deletions

View File

@ -33,7 +33,7 @@ type Cluster interface {
}
type Client interface {
Put(key, value string) error
Put(key, value string, opts config.PutOptions) error
Get(key string, opts config.GetOptions) (*clientv3.GetResponse, error)
Delete(key string, opts config.DeleteOptions) (*clientv3.DeleteResponse, error)
Compact(rev int64, opts config.CompactOption) (*clientv3.CompactResponse, error)