imagedownloader

package
v0.0.0-...-52c2931 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(hc httpclient.HTTPClient) *httpImageDownloader

Types

type DryRunImpl

type DryRunImpl struct{}

func (*DryRunImpl) DownloadImage

func (h *DryRunImpl) DownloadImage(_ context.Context, goldURL string, digest types.Digest) ([]byte, error)

DownloadImage implements the ImageDownloader interface.

type ImageDownloader

type ImageDownloader interface {
	// DownloadImage returns the bytes belonging to a digest from a given instance.
	DownloadImage(ctx context.Context, goldURL string, digest types.Digest) ([]byte, error)
}

ImageDownloader implementations provide functions to download images from Gold.

Jump to

Keyboard shortcuts

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