Function: tramp-kubernetes--container

tramp-kubernetes--container is an autoloaded and byte-compiled function defined in tramp-container.el.gz.

Signature

(tramp-kubernetes--container VEC)

Documentation

Extract the container name from a kubernetes host name in VEC.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-container.el.gz
;;;###tramp-autoload
(defun tramp-kubernetes--container (vec)
  "Extract the container name from a kubernetes host name in VEC."
  (or (when-let* ((host (and vec (tramp-file-name-host vec)))
		  ((string-match tramp-kubernetes--host-name-regexp host)))
	(match-string 1 host))
      ""))