sources

package
v0.0.0-...-38ab1a1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 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 AlpineLinuxHTTP

type AlpineLinuxHTTP struct{}

AlpineLinuxHTTP represents the Alpine Linux downloader.

func NewAlpineLinuxHTTP

func NewAlpineLinuxHTTP() *AlpineLinuxHTTP

NewAlpineLinuxHTTP creates a new AlpineLinuxHTTP instance.

func (*AlpineLinuxHTTP) Run

func (s *AlpineLinuxHTTP) Run(source shared.DefinitionSource, release, arch, rootfsDir string) error

Run downloads an Alpine Linux mini root filesystem.

type ArchLinuxHTTP

type ArchLinuxHTTP struct{}

ArchLinuxHTTP represents the Arch Linux downloader.

func NewArchLinuxHTTP

func NewArchLinuxHTTP() *ArchLinuxHTTP

NewArchLinuxHTTP creates a new ArchLinuxHTTP instance.

func (*ArchLinuxHTTP) Run

func (s *ArchLinuxHTTP) Run(source shared.DefinitionSource, release, arch, rootfsDir string) error

Run downloads an Arch Linux tarball.

type CentOSHTTP

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

CentOSHTTP represents the CentOS HTTP downloader.

func NewCentOSHTTP

func NewCentOSHTTP() *CentOSHTTP

NewCentOSHTTP creates a new CentOSHTTP instance.

func (*CentOSHTTP) Run

func (s *CentOSHTTP) Run(source shared.DefinitionSource, release, arch, rootfsDir string) error

Run downloads the tarball and unpacks it.

type Debootstrap

type Debootstrap struct{}

Debootstrap represents the debootstrap downloader.

func NewDebootstrap

func NewDebootstrap() *Debootstrap

NewDebootstrap creates a new Debootstrap instance.

func (*Debootstrap) Run

func (s *Debootstrap) Run(source shared.DefinitionSource, release, arch, rootfsDir string) error

Run runs debootstrap.

type Downloader

type Downloader interface {
	Run(shared.DefinitionSource, string, string, string) error
}

A Downloader represents a source downloader.

func Get

func Get(name string) Downloader

Get returns a Downloader.

type UbuntuHTTP

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

UbuntuHTTP represents the Ubuntu HTTP downloader.

func NewUbuntuHTTP

func NewUbuntuHTTP() *UbuntuHTTP

NewUbuntuHTTP creates a new UbuntuHTTP instance.

func (*UbuntuHTTP) Run

func (s *UbuntuHTTP) Run(source shared.DefinitionSource, release, arch, rootfsDir string) error

Run downloads the tarball and unpacks it.

Jump to

Keyboard shortcuts

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