Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 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 ¶
func (g FstabGenerator) Run(string, string, shared.DefinitionFile) error
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 ¶
type Generator interface { RunLXC(string, string, *image.LXCImage, shared.DefinitionTargetLXC, shared.DefinitionFile) error RunLXD(string, string, *image.LXDImage, shared.DefinitionTargetLXD, shared.DefinitionFile) error Run(string, string, shared.DefinitionFile) error }
Generator interface.
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.