downloader

package
v0.0.0-...-b359386 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

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 Owo binaries using the tuf client to the given dir with the version suffixed (e.g. /usr/local/bin/owo-host.v20150726.0) and updates non-versioned symlinks.

func (*Downloader) DownloadConfig

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

DownloadConfig downloads the Owo 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