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.
Click to show internal directories.
Click to hide internal directories.