MCPcopy
hub / github.com/grafana/dskit / Delete

Method Delete

kv/consul/client.go:368–371  ·  view source on GitHub ↗

Delete implements kv.Delete.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

366
367// Delete implements kv.Delete.
368func (c *Client) Delete(ctx context.Context, key string) error {
369 _, err := c.kv.Delete(key, writeOptions.WithContext(ctx))
370 return err
371}
372
373func checkLastIndex(index, metaLastIndex uint64) (newIndex uint64, skip bool) {
374 // See https://www.consul.io/api/features/blocking.html#implementation-details for logic behind these checks.

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected