Documentation
¶
Overview ¶
Package netretry provides shared retry utilities for transient network errors across Kubernetes client packages (Docker, Helm, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExponentialDelay ¶
ExponentialDelay returns the delay for the given retry attempt using exponential backoff. Uses the formula: min(baseWait * 2^(attempt-1), maxWait).
func IsRetryable ¶
IsRetryable returns true if the error indicates a transient network error that should be retried. This covers HTTP 5xx status codes and TCP-level errors such as connection resets, timeouts, and unexpected EOF.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.