Function: tramp-parse-goa-accounts

tramp-parse-goa-accounts is a byte-compiled function defined in tramp-gvfs.el.gz.

Signature

(tramp-parse-goa-accounts SERVICE)

Documentation

Return a list of (user host) tuples allowed to access.

It checks for registered GNOME Online Accounts.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-gvfs.el.gz
(defun tramp-parse-goa-accounts (service)
  "Return a list of (user host) tuples allowed to access.
It checks for registered GNOME Online Accounts."
  ;; SERVICE might be encoded as a DNS-SD service.
  (and (string-match tramp-dns-sd-service-regexp service)
       (setq service (match-string 1 service)))
  (mapcar
   (lambda (key)
     (and (tramp-goa-account-p key)
	  (string-equal service (tramp-goa-account-method key))
	  (list (tramp-goa-account-user key)
		(tramp-goa-account-host key))))
   (hash-table-keys tramp-cache-data)))