Get retrieves a single key-value pair from etcd. If opts.Revision is set to a non-zero value, the key-value pair is retrieved at the specified revision. If the required revision has been compacted, the request will fail with ErrCompacted.
(ctx context.Context, key string, opts GetOptions)
| 30 | // If opts.Revision is set to a non-zero value, the key-value pair is retrieved at the specified revision. |
| 31 | // If the required revision has been compacted, the request will fail with ErrCompacted. |
| 32 | Get(ctx context.Context, key string, opts GetOptions) (GetResponse, error) |
| 33 | |
| 34 | // List retrieves key-value pairs with the specified prefix, ordered lexicographically by key. |
| 35 | // |