Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnError ¶
Do copy this code instead of depending on this library
similar to "k8s.io/apimachinery/pkg/util/retry"
func OnErrorManagedBackoff ¶
func OnErrorManagedBackoff(ctx context.Context, backoff wait.Backoff, fn func() (retryable bool, _ error)) error
using this requires the following in your go.mod:
// for github.com/jtagcat/util/retry replace k8s.io/apimachinery => github.com/jtagcat/kubernetes/staging/src/k8s.io/apimachinery v0.0.0-20221027124836-581f57977fff
error is only returned by context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.