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

Method Get

client/v3/kubernetes/interface.go:32–32  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 //

Callers 3

GetMethod · 0.65
ListMethod · 0.65
CountMethod · 0.65

Implementers 1

Clientclient/v3/kubernetes/client.go

Calls

no outgoing calls

Tested by

no test coverage detected