retry

package
v0.0.0-...-631d120 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnError

func OnError(backoff wait.Backoff, fn func() (retryable bool, _ error)) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL