View Source Kino.Hub (Kino v0.12.3)

Functions related to hub integrations and Livebook apps.

Link to this section Summary

Functions

Returns information about the running app.

Link to this section Types

@type app_info() ::
  %{type: :single}
  | %{:type => :multi, optional(:started_by) => user_info()}
  | %{type: :none}
@type user_info() :: %{
  id: String.t(),
  name: String.t() | nil,
  email: String.t() | nil,
  source: atom()
}

Link to this section Functions

@spec app_info() :: app_info()

Returns information about the running app.

Note that :started_by information is only available for multi-session apps when the app uses a Livebook Teams hub.

Unless called from withing an app deployment, returns %{type: :none}.