downloader

package
v0.29.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

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

func New

func New(logger *log.Logger, downloadDir string, registry Registry) *Downloader

func (*Downloader) Run

func (d *Downloader) Run() ([]v1.Descriptor, []digest.Digest, error)

type MaxLayerDownloadRetriesError

type MaxLayerDownloadRetriesError struct {
	DiffID string
	SHA    string
}

func (*MaxLayerDownloadRetriesError) Error

type Registry

type Registry interface {
	Manifest() (v1.Manifest, error)
	Config(v1.Descriptor) (v1.Image, error)
	DownloadLayer(v1.Descriptor, string) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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