Versions in this module Expand all Collapse all v1 v1.3.8 Jul 3, 2025 v1.3.5 May 28, 2025 v1.3.4 May 27, 2025 Changes in this version + func IsRetryable(err error) bool + func IsValidInterfaceForENI(ifaceName string, eniPattern string, ignoreList []string) (bool, error) + func NormalizeInterfaceName(name string) string + func ParseInterfaceIndex(ifaceName string) (int, error) + func RetryWithBackoff(ctx context.Context, config RetryConfig, operation string, fn func() error) error + func SanitizeInterfaceName(name string) string + func ValidateDeviceIndex(index int) error + func ValidateENIPattern(pattern string) error + func ValidateInterfaceName(name string) error + func ValidateInterfaceState(state string) error + func ValidateMACAddress(mac string) error + func ValidateMTU(mtu int) error + func ValidateNetworkConfiguration(ifaceName string, mtu int, deviceIndex int, pciAddress string) error + func ValidatePCIAddress(addr string) error + type InterfaceInfo struct + DeviceIndex int + Index int + IsAWSENI bool + MACAddress string + MTU int + Name string + PCIAddress string + State string + type Manager struct + func NewManager(cfg *config.ENIManagerConfig) *Manager + func (m *Manager) BringDownInterface(ifaceName string) error + func (m *Manager) BringDownInterfaceWithRetry(ctx context.Context, ifaceName string) error + func (m *Manager) BringUpInterface(ifaceName string) error + func (m *Manager) BringUpInterfaceWithRetry(ctx context.Context, ifaceName string) error + func (m *Manager) ConfigureInterfaceFromNodeENI(ifaceName string, nodeENI networkingv1alpha1.NodeENI) error + func (m *Manager) ConfigureInterfaceWithRetry(ctx context.Context, ifaceName string, nodeENI interface{}) error + func (m *Manager) GetAllInterfaces() ([]InterfaceInfo, error) + func (m *Manager) GetInterfaceNameForDeviceIndex(deviceIndex int) (string, error) + func (m *Manager) RetryInterfaceOperation(ctx context.Context, operation string, ifaceName string, fn func() error) error + func (m *Manager) SetMTU(ifaceName string, mtu int) error + func (m *Manager) SetMTUWithRetry(ctx context.Context, ifaceName string, mtu int) error + func (m *Manager) ValidateInterfaceWithRetry(ctx context.Context, ifaceName string) error + func (m *Manager) WaitForInterface(ifaceName string, timeout time.Duration) error + func (m *Manager) WaitForInterfaceWithRetry(ctx context.Context, ifaceName string, timeout time.Duration) error + type RetryConfig struct + BaseDelay time.Duration + MaxAttempts int + MaxDelay time.Duration + Multiplier float64 + func DefaultRetryConfig() RetryConfig + type RetryableError struct + Err error + Retryable bool + func NewRetryableError(err error, retryable bool) *RetryableError + func (e *RetryableError) Error() string + func (e *RetryableError) Unwrap() error