common

package
v1.21.41 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Copyright (C) 2020-2022-2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func E2EConvertIP

func E2EConvertIP(ip string) string

E2EConvertIP converts IP for E2E testing

func IsE2E

func IsE2E() bool

IsE2E checks if running in E2E test mode

func RandomString

func RandomString(length int) string

RandomString generates a random string of the given length

func TimedFunction

func TimedFunction(f func() (any, error), actionMsg string) (any, error)

TimedFunction executes a function and returns its result with error

func TimedFunctionWithRetry

func TimedFunctionWithRetry[T any](f func() (T, error), actionMsg string, numRetries int, sleepBetweenRetries time.Duration) (T, error)

TimedFunctionWithRetry executes a function with retry logic

Types

This section is empty.

Jump to

Keyboard shortcuts

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