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) TorrentHandler ¶
func (re RktEngine) TorrentHandler() engineTorrentHandler
Click to show internal directories.
Click to hide internal directories.