timeutil

module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0

README

timeutil

This module augments Go's standard library time package.

Packages

clock

The clock package provides an abstraction over most of the types and methods in time that depend on a current wall time.

clock/k8sext

This package adapts the Kubernetes API machinery clock fakes to work with our clock package.

clockctx

The clockctx package allows a clock fake to be passed through a context. It also provides its own WithTimeout and WithDeadline functions that use a fake clock.

backoff

The backoff package contains algorithms for determining how long to wait between attempting work.

retry

The retry package builds on the backoff package, providing a utility to automatically attempt to perform work multiple times.

iso8601

The iso8601 package contains types to work with ISO 8601 date/time formats not covered by the standard library: durations, intervals, and recurring intervals.

parseext

The parseext package provides a highly customizable date/time parser that understands multiple format strings.

Directories

Path Synopsis
pkg
backoff
Package backoff provides a set of algorithms for determining how long to wait when an operation needs to be retried.
Package backoff provides a set of algorithms for determining how long to wait when an operation needs to be retried.
clock
Package clock defines interfaces for interacting with the passage of time.
Package clock defines interfaces for interacting with the passage of time.
clock/k8sext
Package k8sext provides adapters for the Kubernetes API machinery clock implementation to this library.
Package k8sext provides adapters for the Kubernetes API machinery clock implementation to this library.
retry
Package retry allows operations to be retried if they fail transiently.
Package retry allows operations to be retried if they fail transiently.

Jump to

Keyboard shortcuts

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