downloader

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 14 Imported by: 4

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
}

Downloader downloads versioned files using a tuf client

func New

func New(client *tuf.Client, vman *volumemanager.Manager, version string) *Downloader

func (*Downloader) DownloadBinaries

func (d *Downloader) DownloadBinaries(dir string) (map[string]string, error)

DownloadBinaries downloads the Flynn binaries using the tuf client to the given dir with the version suffixed (e.g. /usr/local/bin/flynn-host.v20150726.0) and updates non-versioned symlinks.

func (*Downloader) DownloadConfig

func (d *Downloader) DownloadConfig(dir string) (map[string]string, error)

DownloadConfig downloads the Flynn config files using the tuf client to the given dir.

func (*Downloader) DownloadImages

func (d *Downloader) DownloadImages(dir string, info chan *ct.ImagePullInfo) error

Jump to

Keyboard shortcuts

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