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

Method TimeToLive

tests/framework/integration/integration.go:265–272  ·  view source on GitHub ↗
(ctx context.Context, id clientv3.LeaseID, o config.LeaseOption)

Source from the content-addressed store, hash-verified

263}
264
265func (c integrationClient) TimeToLive(ctx context.Context, id clientv3.LeaseID, o config.LeaseOption) (*clientv3.LeaseTimeToLiveResponse, error) {
266 var leaseOpts []clientv3.LeaseOption
267 if o.WithAttachedKeys {
268 leaseOpts = append(leaseOpts, clientv3.WithAttachedKeys())
269 }
270
271 return c.Client.TimeToLive(ctx, id, leaseOpts...)
272}
273
274func (c integrationClient) Leases(ctx context.Context) (*clientv3.LeaseLeasesResponse, error) {
275 return c.Client.Leases(ctx)

Callers

nothing calls this directly

Calls 1

TimeToLiveMethod · 0.65

Tested by

no test coverage detected