MCPcopy
hub / github.com/etcd-io/etcd / Get

Method Get

client/v3/kv.go:49–49  ·  view source on GitHub ↗

Get retrieves keys. By default, Get will return the value for "key", if any. When passed WithRange(end), Get will return the keys in the range [key, end). When passed WithFromKey(), Get returns keys greater than or equal to key. When passed WithRev(rev) with rev > 0, Get retrieves keys at the given

(ctx context.Context, key string, opts ...OpOption)

Source from the content-addressed store, hash-verified

47 // When passed WithLimit(limit), the number of returned keys is bounded by limit.
48 // When passed WithSort(), the keys will be sorted.
49 Get(ctx context.Context, key string, opts ...OpOption) (*GetResponse, error)
50
51 // Delete deletes a key, or optionally using WithRange(end), [key, end).
52 Delete(ctx context.Context, key string, opts ...OpOption) (*DeleteResponse, error)

Callers 15

ExampleKV_txnFunction · 0.95
TestNamespacePutGetFunction · 0.95
TestLeasingPutGetFunction · 0.95
TestLeasingIntervalFunction · 0.95
TestLeasingGetNoLeaseTTLFunction · 0.95

Calls

no outgoing calls

Tested by 15

ExampleKV_txnFunction · 0.76
TestNamespacePutGetFunction · 0.76
TestLeasingPutGetFunction · 0.76
TestLeasingIntervalFunction · 0.76
TestLeasingGetNoLeaseTTLFunction · 0.76