image

package
v0.0.0-...-c429f89 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LXCImage

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

LXCImage represents a LXC image.

func NewLXCImage

func NewLXCImage(sourceDir, targetDir, cacheDir string, definition shared.Definition) *LXCImage

NewLXCImage returns a LXCImage.

func (*LXCImage) AddTemplate

func (l *LXCImage) AddTemplate(path string) error

AddTemplate adds an entry to the templates file.

func (*LXCImage) Build

func (l *LXCImage) Build() error

Build creates a LXC image.

type LXDImage

type LXDImage struct {
	Metadata api.ImageMetadata
	// contains filtered or unexported fields
}

A LXDImage represents a LXD image.

func NewLXDImage

func NewLXDImage(sourceDir, targetDir, cacheDir string,
	definition shared.Definition) *LXDImage

NewLXDImage returns a LXDImage.

func (*LXDImage) Build

func (l *LXDImage) Build(unified bool, compression string, vm bool) error

Build creates a LXD image.

Jump to

Keyboard shortcuts

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