chrony

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed chrony.conf.tpl
	ChronyConfigTemplateString string
)

Functions

func WriteSystemdUnit

func WriteSystemdUnit(ctx context.Context, cfg *Config, c *TemplateData, vrfName string) (changed bool, err error)

Types

type Config

type Config struct {
	Log    *slog.Logger
	Reload bool
	Enable bool
	// ChronyConfigPath allows overwriting the default chrony config path
	ChronyConfigPath string
	// contains filtered or unexported fields
}

type TemplateData

type TemplateData struct {
	NTPServers []string
}

Jump to

Keyboard shortcuts

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