retry

package
v0.0.0-...-5d070a7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Session

func Session(sp sessionProvider) *retryCheck

func Succeeds

func Succeeds(session *gexec.Session) bool

Types

type Backoff

type Backoff func(retryCount uint) time.Duration

func Exponential

func Exponential(baseline time.Duration) Backoff

func Linear

func Linear(baseline time.Duration) Backoff

func None

func None(baseline time.Duration) Backoff

type Condition

type Condition func(session *gexec.Session) bool

func MatchesErrorOutput

func MatchesErrorOutput(regex *regexp.Regexp) Condition

func MatchesOutput

func MatchesOutput(regex *regexp.Regexp) Condition

func MatchesStdOrErrorOutput

func MatchesStdOrErrorOutput(regex *regexp.Regexp) Condition

Jump to

Keyboard shortcuts

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