MCPcopy Create free account
hub / github.com/docker/cli / IntervalDuration

Method IntervalDuration

internal/oauth/api/state.go:18–20  ·  view source on GitHub ↗

IntervalDuration returns the duration that should be waited between each auth polling event.

()

Source from the content-addressed store, hash-verified

16// IntervalDuration returns the duration that should be waited between each auth
17// polling event.
18func (s State) IntervalDuration() time.Duration {
19 return time.Second * time.Duration(s.Interval)
20}
21
22// ExpiryDuration returns the total duration for which the client should keep
23// polling.

Callers 1

WaitForDeviceTokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected