errors

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRetry = RetryConfig{
	MaxRetries:     3,
	InitialBackoff: 1 * time.Second,
	MaxBackoff:     30 * time.Second,
}

Functions

func ToErrno

func ToErrno(err error) syscall.Errno

func WithRetry

func WithRetry(ctx context.Context, cfg RetryConfig, fn func() ([]byte, error)) ([]byte, error)

Types

type AuthRecovery

type AuthRecovery struct {
	// contains filtered or unexported fields
}

func NewAuthRecovery

func NewAuthRecovery(cliPath string) *AuthRecovery

func (*AuthRecovery) HandleError

func (r *AuthRecovery) HandleError(ctx context.Context, err error) error

func (*AuthRecovery) IsDegraded

func (r *AuthRecovery) IsDegraded() bool

type RetryConfig

type RetryConfig struct {
	MaxRetries     int
	InitialBackoff time.Duration
	MaxBackoff     time.Duration
}

Jump to

Keyboard shortcuts

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