image

package
v2.6.0-pre Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package image provides helping wrappers around a versionsapi fetcher.

It also enables local image overrides and download of raw images.

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
}

Downloader downloads raw images.

func NewDownloader

func NewDownloader() *Downloader

NewDownloader creates a new Downloader.

func (*Downloader) Download

func (d *Downloader) Download(ctx context.Context, errWriter io.Writer, showBar bool, source, imageName string) (string, error)

Download downloads the raw image from source.

type Fetcher

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

Fetcher fetches image references using a lookup table.

func New

func New() *Fetcher

New returns a new image fetcher.

func (*Fetcher) FetchReference

func (f *Fetcher) FetchReference(ctx context.Context, config *config.Config) (string, error)

FetchReference fetches the image reference for a given image version uid, CSP and image variant.

Jump to

Keyboard shortcuts

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