KinoK8s.KinoTerminal (kino_k8s v2.1.0)

View Source

A Livebook Kino providing a Terminal to a Kubernetes Pod.

Summary

Functions

Opens a terminal using xterm.js. Expects connect to be a function to establish the connection to the underlying IO process. The function will be called passing the pid of this Kino and is expected to return a function that should be used to send messages to the process.

Functions

open(connect)

@spec open((into :: pid() | {pid(), reference()} ->
        send_to_process :: (term() -> term()))) ::
  Kino.JS.Live.t()

Opens a terminal using xterm.js. Expects connect to be a function to establish the connection to the underlying IO process. The function will be called passing the pid of this Kino and is expected to return a function that should be used to send messages to the process.