func nmNewSettingsConnection(cpath dbus.ObjectPath) (conn *nm.SettingsConnection, err error) { conn, err = nm.NewSettingsConnection(dbusNmDest, cpath) if err != nil { logger.Error(err) return } return }
func nmGetConnectionSecrets(cpath dbus.ObjectPath, secretField string) (secrets connectionData, err error) { nmConn, err := nm.NewSettingsConnection(dbusNmDest, cpath) if err != nil { logger.Error(err) return } secrets, err = nmConn.GetSecrets(secretField) if err != nil { logger.Error(err) return } return }
func nmGetConnectionData(cpath dbus.ObjectPath) (data connectionData, err error) { nmConn, err := nm.NewSettingsConnection(dbusNmDest, cpath) if err != nil { logger.Error(err) return } data, err = nmConn.GetSettings() if err != nil { logger.Error(err) return } return }