feat: implement Settings.ReloadConnections
This commit is contained in:
parent
594bfca331
commit
085876362a
1 changed files with 9 additions and 0 deletions
|
@ -27,6 +27,9 @@ type Settings interface {
|
||||||
// ListConnections gets list the saved network connections known to NetworkManager
|
// ListConnections gets list the saved network connections known to NetworkManager
|
||||||
ListConnections() ([]Connection, error)
|
ListConnections() ([]Connection, error)
|
||||||
|
|
||||||
|
// ReloadConnections tells NetworkManager to reload all connection files from disk, including noticing any added or deleted connection files.
|
||||||
|
ReloadConnections() error
|
||||||
|
|
||||||
// GetConnectionByUUID gets the connection, given that connection's UUID.
|
// GetConnectionByUUID gets the connection, given that connection's UUID.
|
||||||
GetConnectionByUUID(uuid string) (Connection, error)
|
GetConnectionByUUID(uuid string) (Connection, error)
|
||||||
|
|
||||||
|
@ -75,6 +78,12 @@ func (s *settings) ListConnections() ([]Connection, error) {
|
||||||
return connections, nil
|
return connections, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReloadConnections tells NetworkManager to reload (and apply) configuration files
|
||||||
|
// from disk taking notice of any added or removed connections.
|
||||||
|
func (s *settings) ReloadConnections() error {
|
||||||
|
return s.call(SettingsReloadConnections)
|
||||||
|
}
|
||||||
|
|
||||||
// GetConnectionByUUID gets the connection, given that connection's UUID.
|
// GetConnectionByUUID gets the connection, given that connection's UUID.
|
||||||
func (s *settings) GetConnectionByUUID(uuid string) (Connection, error) {
|
func (s *settings) GetConnectionByUUID(uuid string) (Connection, error) {
|
||||||
var path dbus.ObjectPath
|
var path dbus.ObjectPath
|
||||||
|
|
Reference in a new issue