Skip to content

Commit c211bab

Browse files
author
Dongsu Park
committed
machine1: add a method GetMachineAddresses
Add a new method `GetMachineAddresses`, which gets a list of IP addresses of the given machine name.
1 parent 7260ea5 commit c211bab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

machine1/dbus.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ func (c *Conn) GetMachineByPID(pid uint) (dbus.ObjectPath, error) {
125125
return c.getPath("GetMachineByPID", pid)
126126
}
127127

128+
// GetMachineAddresses gets a list of IP addresses
129+
func (c *Conn) GetMachineAddresses(name string) (dbus.ObjectPath, error) {
130+
return c.getPath("GetMachineAddresses", name)
131+
}
132+
128133
// DescribeMachine gets the properties of a machine
129134
func (c *Conn) DescribeMachine(name string) (machineProps map[string]interface{}, err error) {
130135
var dbusProps map[string]dbus.Variant

0 commit comments

Comments
 (0)