Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UnitExtensions = []string{
".automount",
".device",
".mount",
".path",
".scope",
".service",
".slice",
".socket",
".swap",
".target",
".timer",
}
UnitExtensions is a slice containing all valid systemd unit file extensions. See https://www.freedesktop.org/software/systemd/man/systemd.unit.html
Functions ¶
func EscapeCommand ¶
EscapeCommand is used to escape a command
func UnitFileExtensionValid ¶ added in v1.11.0
UnitFileExtensionValid checks whether the provided filename ends with a valid systemd unit file extension.
Types ¶
type Manifest ¶
type Manifest struct {
// contains filtered or unexported fields
}
Manifest defines a systemd unit
func (*Manifest) SetSection ¶
SetSection sets the raw content of a section
Click to show internal directories.
Click to hide internal directories.