Skip to content

Commit 4b8a4eb

Browse files
committed
feat(dbus/methods): add GetUnitTypeProperty
1 parent ada3e13 commit 4b8a4eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dbus/methods.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ func (c *Conn) GetUnitTypeProperties(unit string, unitType string) (map[string]i
196196
return c.getProperties(unit, "org.freedesktop.systemd1." + unitType)
197197
}
198198

199+
func (c *Conn) GetUnitTypeProperty(unit string, unitType string, propertyName string) (*Property, error) {
200+
return c.getProperty(unit, "org.freedesktop.systemd1." + unitType, propertyName)
201+
}
202+
199203
// ListUnits returns an array with all currently loaded units. Note that
200204
// units may be known by multiple names at the same time, and hence there might
201205
// be more unit names loaded than actual units behind them.

0 commit comments

Comments
 (0)