util

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTags added in v0.10.0

func BuildTags(tags map[string]api.ImageTag, tag string, current *api.ImageTag)

func HTTPBackOff added in v0.9.2

func HTTPBackOff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration

This is a custom Backoff that enforces the Max wait duration. If the sleep is greater we only sleep for the max duration.

func JoinRepoImage

func JoinRepoImage(repo, image string) string

Join repo and image strings.

func OSArchFromTag added in v0.2.2

func OSArchFromTag(tag string) (os api.OS, arch api.Architecture)

Attempt to determine the OS and Arch, given a tag name.

func RateLimitedBackoffLimiter added in v0.10.0

func RateLimitedBackoffLimiter(
	logger *logrus.Entry,
	limiter *rate.Limiter,
	maxWait time.Duration,
) retryablehttp.Backoff

func TagMaptoList added in v0.10.0

func TagMaptoList(tags map[string]api.ImageTag) []api.ImageTag

Types

This section is empty.

Jump to

Keyboard shortcuts

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