engine

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2016 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// allLayers specifies that torrents should be returned for all layers, regardless of
	// whether they are present within the container engine's layer store.
	AllLayers layersOption = iota

	// missingLayers specifies that torrents should be returned for only those layers missing
	// within the container engine's layer store.
	MissingLayers
)
View Source
const (
	TorrentNoSeed torrentSeedOption = iota
	TorrentSeedAfterPull
)

Variables

This section is empty.

Functions

func DownloadTorrents

func DownloadTorrents(torrents []torrentInfo, torrentFolder string, seedOption torrentSeedOption,
	torrentSeedDuration time.Duration, clientConfig bittorrent.ClientConfig,
	downloadConfig bittorrent.DownloadConfig) downloadTorrentInfo

DownloadTorrents starts the downloads of all the specified torrents, with optional seeding once completed. Returns immediately with a downloadTorrentInfo struct.

Types

type ContainerEngine

type ContainerEngine interface {
	// Name is a single identifier for the engine, used as the first parameter
	// on the quayctl command line.
	Name() string

	// Title is a human-readable title for the engine.
	Title() string

	// TorrentHandler returns a handler for interacting with the `torrent pull` command.
	TorrentHandler() engineTorrentHandler
}

ContainerEngine represents a container engine (e.g. Docker or rkt) with which quayctl can interact.

type DockerEngine

type DockerEngine struct{}

DockerEngine defines an engine interface for interacting with Docker.

func (DockerEngine) Name

func (de DockerEngine) Name() string

func (DockerEngine) Title

func (de DockerEngine) Title() string

func (DockerEngine) TorrentHandler

func (de DockerEngine) TorrentHandler() engineTorrentHandler

type RktEngine

type RktEngine struct{}

RktEngine defines an engine interface for interacting with rkt.

func (RktEngine) Name

func (re RktEngine) Name() string

func (RktEngine) Title

func (re RktEngine) Title() string

func (RktEngine) TorrentHandler

func (re RktEngine) TorrentHandler() engineTorrentHandler

Jump to

Keyboard shortcuts

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