systemdgen

package
v0.0.0-...-ede35a2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(machine machina.MachineInfo, opts qemu.Options) []systemdconf.Section

Build returns a set of systemd unit configuration sections for machine with the given options.

func QuoteArg

func QuoteArg(arg string) string

QuoteArg returns the argument in a form suitable for use in a systemd exec command line. The returned string is only quoted if necessary.

func QuoteOption

func QuoteOption(opt qemu.Option) string

QuoteOption returns a string representation of the option.

It returns an empty string if the option is invalid.

The returned string will be properly quoted so that it is suitable for use in a systemd exec command line.

func QuoteOptions

func QuoteOptions(opts qemu.Options) string

QuoteOptions returns a multiline string for invocation of a QEMU virtual machine with the given options.

The returned string will be properly quoted so that it is suitable for use in a systemd exec command line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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