systemd_renderer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(ctx context.Context, log *slog.Logger, unitName string) error

func New

func New(c *Config) (*systemdRenderer, error)

New returns a new system service renderer

func Reload

func Reload(ctx context.Context, log *slog.Logger, unitName string) error

Types

type Config

type Config struct {
	ServiceName    string
	Enable         bool
	Log            *slog.Logger
	TemplateString string
	Data           any
	// Validate allows the validation of the rendered template on a given temp file path, optional
	Validate func(path string) error
	Fs       afero.Fs
}

Jump to

Keyboard shortcuts

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