Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteEmpty(s []string) []string
- func GetExpBackoff(steps int) wait.Backoff
- func IsRetriable(err error) bool
- func PathToOSFile(relativePath string) (*os.File, error)
- func RetryOnAnyError(backoff *wait.Backoff, fn FuncToRetry) error
- func RetryOnError(backoff *wait.Backoff, retryExpected func(error) bool, ...) (interface{}, error)
- func StructToPrettyString(st interface{}) string
- type FuncToRetry
- type FuncToRetryWithReturn
Constants ¶
View Source
const ( DurationMinutes = "minutes" DurationSeconds = "seconds" )
Variables ¶
View Source
var ( DefaultRetry = wait.Backoff{ Steps: 6, Duration: 1000 * time.Millisecond, Factor: 1.0, Jitter: 0.1, } )
Functions ¶
func DeleteEmpty ¶
func GetExpBackoff ¶ added in v0.10.1
func IsRetriable ¶
func RetryOnAnyError ¶
func RetryOnAnyError(backoff *wait.Backoff, fn FuncToRetry) error
func RetryOnError ¶
func StructToPrettyString ¶ added in v0.10.1
func StructToPrettyString(st interface{}) string
Types ¶
type FuncToRetry ¶
type FuncToRetry func() error
type FuncToRetryWithReturn ¶
type FuncToRetryWithReturn func() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.