package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev
# Functions
IsDoNotRetryError returns true if the error is caused by DoNotRetry error, and the transfer should not be retried.
NewLayerDownloadManager returns a new LayerDownloadManager.
NewLayerUploadManager returns a new LayerUploadManager.
WithMaxDownloadAttempts configures the maximum number of download attempts for a download manager.
# Structs
DoNotRetry is an error wrapper indicating that the error cannot be resolved with a retry.
LayerDownloadManager figures out which layers need to be downloaded, then registers and downloads those, taking into account dependencies between layers.
LayerUploadManager provides task management and progress reporting for uploads.
# Interfaces
DigestRegisterer can be implemented by a DownloadDescriptor, and provides a Registered method which gets called after a downloaded layer is registered.
A DownloadDescriptor references a layer that may need to be downloaded.
An UploadDescriptor references a layer that may need to be uploaded.
# Type aliases
DownloadOption set options for the LayerDownloadManager.