generators

package
v0.0.0-...-f61d9f4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSupported = errors.New("Not supported")

ErrNotSupported returns a "Not supported" error.

View Source
var ErrUnknownGenerator = errors.New("Unknown generator")

ErrUnknownGenerator represents the unknown generator error.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	RunLXC(*image.LXCImage, shared.DefinitionTargetLXC) error
	RunLXD(*image.LXDImage, shared.DefinitionTargetLXD) error
	Run() error
}

Generator interface.

func Load

func Load(generatorName string, logger *logrus.Logger, cacheDir string, sourceDir string, defFile shared.DefinitionFile, def shared.Definition) (Generator, error)

Load loads and initializes a generator.

Jump to

Keyboard shortcuts

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