Help us shape the future of Go! Take the 2026 Go Developer Survey

systemd

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeCommand

func EscapeCommand(argv []string) string

EscapeCommand is used to escape a command

Types

type Manifest

type Manifest struct {
	// contains filtered or unexported fields
}

Manifest defines a systemd unit

func (*Manifest) Render

func (m *Manifest) Render() string

Render is responsible for generating the final unit

func (*Manifest) Set

func (m *Manifest) Set(name, key, value string)

Set adds a key/pair to the a section in the systemd manifest

func (*Manifest) SetSection

func (m *Manifest) SetSection(name, content string)

SetSection sets the raw content of a section

Jump to

Keyboard shortcuts

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