apiretry

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package apiretry provides the retry func shared between networking controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(do func() error) error

Do will retry the do func only when the error is transient.

func WaitUntilObjectDeleted

func WaitUntilObjectDeleted(ctx context.Context, get func() error) error

WaitUntilObjectDeleted will ensure obj is deleted until it hits the backoff cap. It will retry only when it gets the object or the error is transient.

Types

This section is empty.

Jump to

Keyboard shortcuts

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