internal

package
v0.0.0-...-53ffc18 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SdBootedV = func() bool {
	if v, err := SdBooted(); err != nil {
		fmt.Println("warn: read systemd marker:", err)
		return false
	} else {
		return v
	}
}()

Functions

Types

type SystemConstants

type SystemConstants struct {
	// path to shared directory e.g. /tmp/fortify.%d
	SharePath string `json:"share_path"`
	// XDG_RUNTIME_DIR value e.g. /run/user/%d
	RuntimePath string `json:"runtime_path"`
	// application runtime directory e.g. /run/user/%d/fortify
	RunDirPath string `json:"run_dir_path"`
}

SystemConstants contains state from the operating system

func GetSC

func GetSC() SystemConstants

GetSC returns a populated SystemConstants value

Directories

Path Synopsis
Package fmsg provides various functions for output messages.
Package fmsg provides various functions for output messages.

Jump to

Keyboard shortcuts

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