systemd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOptionalFlags added in v0.0.3

func GetOptionalFlags() []string

GetOptionalFlags returns a list of optional flag names.

func GetRequiredFlags added in v0.0.3

func GetRequiredFlags() []string

GetRequiredFlags returns a list of required flag names.

func RenderTemplate

func RenderTemplate(fields *Fields) (string, error)

RenderTemplate renders the template for the systemd service.

Types

type Fields

type Fields struct {
	ServiceID  string
	Script     string
	TagPrefix  string
	Interval   string
	Token      string
	ConsulAddr string
	User       string
	Group      string
}

Fields is the struct that holds the fields for the systemd service.

func NewFieldsFromFlags added in v0.0.3

func NewFieldsFromFlags(flags map[string]string) (*Fields, error)

NewFieldsFromFlags creates a new Fields struct from command line flags.

Jump to

Keyboard shortcuts

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