Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleMockAllUnitsActiveOutput ¶
func HandleMockAllUnitsActiveOutput(cmd []string, states map[string]ServiceState) []byte
HandleMockAllUnitsActiveOutput returns the output for systemctl in the case where units have the state as described by states. If `cmd` is the command issued by systemd.Status(), this function returns the output to be produced by the command so that the queried services will appear having the ActiveState and UnitFileState according to the data passed in the `states` map.
Types ¶
type ServiceState ¶
Click to show internal directories.
Click to hide internal directories.