kubernetes/pkg/util/goroutinemap/exponentialbackoff/exponential_backoff.go

const initialDurationBeforeRetry

const maxDurationBeforeRetry

type ExponentialBackoff

// SafeToRetry returns an error if the durationBeforeRetry period for the given
// lastErrorTime has not yet expired. Otherwise it returns nil.
func (expBackoff *ExponentialBackoff) SafeToRetry(operationName string) error {}

func (expBackoff *ExponentialBackoff) Update(err *error) {}

func (expBackoff *ExponentialBackoff) GenerateNoRetriesPermittedMsg(operationName string) string {}

// NewExponentialBackoffError returns a new instance of ExponentialBackoff error.
func NewExponentialBackoffError(
	operationName string, expBackoff ExponentialBackoff) error {}

// IsExponentialBackoff returns true if an error returned from GoroutineMap
// indicates that a new operation can not be started because
// exponentialBackOffOnError is enabled and a previous operation with the same
// operation failed within the durationBeforeRetry period.
func IsExponentialBackoff(err error) bool {}

type exponentialBackoffError

var _

func (err exponentialBackoffError) Error() string {}