generators

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: 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

Functions

This section is empty.

Types

type CloudInitGenerator

type CloudInitGenerator struct{}

CloudInitGenerator represents the cloud-init generator.

func (CloudInitGenerator) Run

func (g CloudInitGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run does nothing.

func (CloudInitGenerator) RunLXC

func (g CloudInitGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC disables cloud-init.

func (CloudInitGenerator) RunLXD

func (g CloudInitGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD creates cloud-init template files.

type CopyGenerator

type CopyGenerator struct{}

CopyGenerator represents the Copy generator.

func (CopyGenerator) Run

func (g CopyGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run copies a file to the container.

func (CopyGenerator) RunLXC

func (g CopyGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC copies a file to the container.

func (CopyGenerator) RunLXD

func (g CopyGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD copies a file to the container.

type DumpGenerator

type DumpGenerator struct{}

DumpGenerator represents the Remove generator.

func (DumpGenerator) Run

func (g DumpGenerator) Run(cacheDir, sourceDir string, defFile shared.DefinitionFile) error

Run dumps content to a file.

func (DumpGenerator) RunLXC

func (g DumpGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC dumps content to a file.

func (DumpGenerator) RunLXD

func (g DumpGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD dumps content to a file.

type FstabGenerator

type FstabGenerator struct{}

FstabGenerator represents the fstab generator.

func (FstabGenerator) Run

Run does nothing.

func (FstabGenerator) RunLXC

func (g FstabGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC doesn't support the fstab generator.

func (FstabGenerator) RunLXD

func (g FstabGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD writes to /etc/fstab.

type Generator

Generator interface.

func Get

func Get(generator string) Generator

Get returns a Generator.

type HostnameGenerator

type HostnameGenerator struct{}

HostnameGenerator represents the Hostname generator.

func (HostnameGenerator) Run

func (g HostnameGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run does nothing.

func (HostnameGenerator) RunLXC

func (g HostnameGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC creates a hostname template.

func (HostnameGenerator) RunLXD

func (g HostnameGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD creates a hostname template.

type HostsGenerator

type HostsGenerator struct{}

HostsGenerator represents the hosts generator.

func (HostsGenerator) Run

func (g HostsGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run does nothing.

func (HostsGenerator) RunLXC

func (g HostsGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC creates a LXC specific entry in the hosts file.

func (HostsGenerator) RunLXD

func (g HostsGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD creates a hosts template.

type LXDAgentGenerator

type LXDAgentGenerator struct{}

LXDAgentGenerator represents the lxd-agent generator.

func (LXDAgentGenerator) Run

func (g LXDAgentGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run does nothing.

func (LXDAgentGenerator) RunLXC

func (g LXDAgentGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage, target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC is not supported.

func (LXDAgentGenerator) RunLXD

func (g LXDAgentGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage, target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD creates systemd unit files for the lxd-agent.

type RemoveGenerator

type RemoveGenerator struct{}

RemoveGenerator represents the Remove generator.

func (RemoveGenerator) Run

func (g RemoveGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run removes a path.

func (RemoveGenerator) RunLXC

func (g RemoveGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC removes a path.

func (RemoveGenerator) RunLXD

func (g RemoveGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD removes a path.

type TemplateGenerator

type TemplateGenerator struct{}

TemplateGenerator represents the Template generator.

func (TemplateGenerator) Run

func (g TemplateGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run does nothing.

func (TemplateGenerator) RunLXC

func (g TemplateGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC dumps content to a file.

func (TemplateGenerator) RunLXD

func (g TemplateGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD dumps content to a file.

type UpstartTTYGenerator

type UpstartTTYGenerator struct{}

UpstartTTYGenerator represents the UpstartTTY generator.

func (UpstartTTYGenerator) Run

func (g UpstartTTYGenerator) Run(cacheDir, sourceDir string,
	defFile shared.DefinitionFile) error

Run does nothing.

func (UpstartTTYGenerator) RunLXC

func (g UpstartTTYGenerator) RunLXC(cacheDir, sourceDir string, img *image.LXCImage,
	target shared.DefinitionTargetLXC, defFile shared.DefinitionFile) error

RunLXC creates a hostname template.

func (UpstartTTYGenerator) RunLXD

func (g UpstartTTYGenerator) RunLXD(cacheDir, sourceDir string, img *image.LXDImage,
	target shared.DefinitionTargetLXD, defFile shared.DefinitionFile) error

RunLXD creates a hostname template.

Jump to

Keyboard shortcuts

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