Documentation ¶
Index ¶
Constants ¶
View Source
const PropertyActiveState = "ActiveState"
View Source
const PropertyLoadState = "LoadState"
Variables ¶
View Source
var IsEnabledOutputs = []IsEnabledOutput{ Enabled, EnabledRuntime, Linked, LinkedRuntime, Masked, MaskedRuntime, Static, Indirect, Disabled, Generated, Transient, }
IsEnabledOutputs provides a list of valid outputs from `systemctl is-enabled UNIT…` https://www.freedesktop.org/software/systemd/man/systemctl.html#is-enabled%20UNIT%E2%80%A6
Functions ¶
This section is empty.
Types ¶
type ActiveState ¶
type ActiveState string
const ( // ActiveStateActive indicates that unit is active. ActiveStateActive ActiveState = "active" // ActiveStateReloading indicates that the unit is active and currently reloading its configuration. ActiveStateReloading ActiveState = "reloading" // ActiveStateInactive indicates that it is inactive and the previous run was successful or no previous run has taken place yet. ActiveStateInactive ActiveState = "inactive" // ActiveStateFailed indicates that it is inactive and the previous run was not successful. ActiveStateFailed ActiveState = "failed" // ActiveStateActivating indicates that the unit has previously been inactive but is currently in the process of entering an active state. ActiveStateActivating ActiveState = "activating" // ActiveStateDeactivating indicates that the unit is currently in the process of deactivation. ActiveStateDeactivating ActiveState = "deactivating" )
type IsEnabledOutput ¶
type IsEnabledOutput string
const ( Enabled IsEnabledOutput = "enabled" EnabledRuntime IsEnabledOutput = "enabled-runtime" Linked IsEnabledOutput = "linked" LinkedRuntime IsEnabledOutput = "linked-runtime" Masked IsEnabledOutput = "masked" MaskedRuntime IsEnabledOutput = "masked-runtime" Static IsEnabledOutput = "static" Indirect IsEnabledOutput = "indirect" Disabled IsEnabledOutput = "disabled" Generated IsEnabledOutput = "generated" Transient IsEnabledOutput = "transient" )
type UnitType ¶ added in v0.5.0
type UnitType string
const ( UnitTypeService UnitType = "service" UnitTypeSocket UnitType = "socket" UnitTypeDevice UnitType = "device" UnitTypeMount UnitType = "mount" UnitTypeAutoMount UnitType = "automount" UnitTypeSwap UnitType = "swap" UnitTypeTarget UnitType = "target" UnitTypePath UnitType = "path" UnitTypeTimer UnitType = "timer" UnitTypeSlide UnitType = "slice" UnitTypeScope UnitType = "scope" )
Click to show internal directories.
Click to hide internal directories.