cmd

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(ctx context.Context, newCmd Builder, backoff time.Duration) error

Retry runs the command until it succeeds or the context is cancelled. The backoff duration is the time to wait between retries.

Types

type Builder

type Builder func(context.Context) *exec.Cmd

Builder builds a exec.Cmd. Each invocation should return a new instance so they can be retried independently.

Jump to

Keyboard shortcuts

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