Documentation ¶ Index ¶ func Enable(ctx context.Context, log *slog.Logger, unitName string) error func New(c *Config) (*systemdRenderer, error) func Reload(ctx context.Context, log *slog.Logger, unitName string) error type Config 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 } Source Files ¶ View all Source files systemd_renderer.go Click to show internal directories. Click to hide internal directories.