image

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ImgMaxRetries     = 3
	ImgOutputLimit    = 4096
	ImgExe            = "img"
	ImgMinimumVersion = "v0.5.7"
	ImgURL            = "https://github.com/genuinetools/img/releases/download/v0.5.7/img-linux-amd64"
)
View Source
const (
	TosiMaxRetries              = 3
	TosiOutputLimit             = 4096
	TosiExe                     = "tosi"
	TosiMinimumVersion          = "v0.0.7"
	TosiURL                     = "https://github.com/elotl/tosi/releases/download/v0.0.7/tosi-amd64"
	TosiUseOverlayRootfs        = true
	TosiDefaultImageExtractFlag = "-mount"
	TosiExtracttoFlag           = "-extractto"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageClient

type ImageClient interface {
	Login(server, username, password string) error
	Pull(server, image string) error
	Unpack(image, dest string) error
}

type Img

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

func NewImg

func NewImg(stateDir, imgExe string) *Img

func (*Img) Login

func (i *Img) Login(server, username, password string) error

func (*Img) Pull

func (i *Img) Pull(server, image string) error

func (*Img) Unpack

func (i *Img) Unpack(image, dest, configPath string) error

type Tosi

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

func NewTosi

func NewTosi() *Tosi

func (*Tosi) Login

func (t *Tosi) Login(server, username, password string) error

func (*Tosi) Pull

func (t *Tosi) Pull(server, image string) error

func (*Tosi) SetTosiExtractionType added in v1.2.0

func (t *Tosi) SetTosiExtractionType(useOverlayRootfs bool)

func (*Tosi) Unpack

func (t *Tosi) Unpack(image, dest, configPath string) error

Jump to

Keyboard shortcuts

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