Documentation ¶
Overview ¶
Package systemd tracks the systemd state and unit files.
Index ¶
Constants ¶
View Source
const ( StateNameSystemd = "systemd" StateKeySystemdVersion = "version" StateNameUnit = "unit" StateKeyUnitName = "name" StateKeyUnitActive = "active" StateKeyUnitUptimeSeconds = "uptime_seconds" StateKeyUnitUptimeHumanized = "uptime_humanized" )
View Source
const Name = "systemd"
Variables ¶
This section is empty.
Functions ¶
func CloseDefaultDbusConn ¶
func CloseDefaultDbusConn()
func ConnectDbus ¶
func ConnectDbus() error
func GetDefaultDbusConn ¶
Types ¶
type Config ¶
type Config struct { Query query_config.Config `json:"query"` Units []string `json:"units"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Output ¶
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
Click to show internal directories.
Click to hide internal directories.