Documentation ¶
Index ¶
- func GetUnitStates(d *dbus.Conn, unitNames []string) ([]dbus.UnitStatus, error)
- func MustGetUnitStates(d *dbus.Conn, unitNames []string) ([]dbus.UnitStatus, error)
- func RandStringBytesMaskImprSrc(n int) string
- func StartUnit(d *dbus.Conn, unitName string) error
- func StopUnit(d *dbus.Conn, unitName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUnitStates ¶ added in v0.4.0
GetUnitStates returns the dbus UnitStates of unit names passed in parameter
func MustGetUnitStates ¶ added in v0.5.0
MustGetUnitStates returns the dbus UnitStates of unit names passed in parameter, an error is returned if the UnitStatus return more or less than asked
func RandStringBytesMaskImprSrc ¶
RandStringBytesMaskImprSrc generate a random string based on the length n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.