backoff

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKey                 = ""
	ENICreate                  = "eni_create"
	ENIOps                     = "eni_ops"
	ENIRelease                 = "eni_release"
	ENIIPOps                   = "eni_ip_ops"
	WaitENIIPRemoved           = "wait_eni_ip_removed"
	WaitENIStatus              = "wait_eni_status"
	WaitMemberENIStatus        = "wait_member_eni_status"
	WaitLENIStatus             = "wait_leni_status"
	WaitHDENIStatus            = "wait_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