backoff

package
v1.17.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultKey                 = ""
	ENICreate                  = "eni_create"
	ENIOps                     = "eni_ops"
	ENIRelease                 = "eni_release"
	ENIIPOps                   = "eni_ip_ops"
	ENIDeleteConfirm           = "eni_delete_confirm"
	WaitENIIPRemoved           = "wait_eni_ip_removed"
	WaitENIStatus              = "wait_eni_status"
	WaitMemberENIStatus        = "wait_member_eni_status"
	WaitLENIStatus             = "wait_leni_status"
	WaitHDENIStatus            = "wait_hdeni_status"
	WaitECSLENIStatus          = "wait_ecs_leni_status"
	WaitECSHDENIStatus         = "wait_ecs_hdeni_status"
	WaitPodENIStatus           = "wait_podeni_status"
	WaitNetworkInterfaceStatus = "wait_networkinterface_status"
	MetaAssignPrivateIP        = "meta_assign_private_ip"
	MetaUnAssignPrivateIP      = "meta_unassign_private_ip"
	WaitStsTokenReady          = "wait_sts_token_ready"
	WaitNodeStatus             = "wait_node_status"
)

backoff keys

Variables

This section is empty.

Functions

func ExponentialBackoffWithInitialDelay added in v1.15.0

func ExponentialBackoffWithInitialDelay(ctx context.Context, extendedBackoff ExtendedBackoff, condition func(context.Context) (bool, error)) error

ExponentialBackoffWithInitialDelay extends ExponentialBackoffWithContext with initial delay support

func OverrideBackoff

func OverrideBackoff(in map[string]ExtendedBackoff)

Types

type ExtendedBackoff added in v1.15.0

type ExtendedBackoff struct {
	// InitialDelay is the initial wait time before starting retries
	InitialDelay time.Duration
	// Backoff is the original k8s backoff configuration
	wait.Backoff
}

ExtendedBackoff extends the backoff configuration with initial delay support

func Backoff

func Backoff(key string) ExtendedBackoff

func NewExtendedBackoff added in v1.15.0

func NewExtendedBackoff(initialDelay time.Duration, backoff wait.Backoff) ExtendedBackoff

NewExtendedBackoff creates a new extended backoff configuration

Jump to

Keyboard shortcuts

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