os

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SigUpdate = unix.SIGUSR1
	SigReload = unix.SIGHUP
)
View Source
const ReexecSelfSupported = true

Variables

This section is empty.

Functions

func GetClockMonotonic added in v0.7.0

func GetClockMonotonic() (t time.Time, err error)

GetClockMonotonic returns the current time from the CLOCK_MONOTONIC clock.

func HasAdminPrivileges

func HasAdminPrivileges() bool

func HasCapabilities

func HasCapabilities(caps ...cap.Value) bool

func ReexecSelf

func ReexecSelf() error

func SetSysctl

func SetSysctl(name string, value any) error

func SetSysctlMap

func SetSysctlMap(m map[string]any) error

func SetupSignals

func SetupSignals(extraSignals ...os.Signal) chan os.Signal

Types

This section is empty.

Directories

Path Synopsis
Package systemd provides a Go implementation of systemd related protocols.
Package systemd provides a Go implementation of systemd related protocols.

Jump to

Keyboard shortcuts

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