MingaEditor.NativeIPC.Identity (Minga v0.1.0)

Copy Markdown View Source

Authenticated identity for one native IPC endpoint generation.

The identity crosses from the endpoint server to connection processes and is also serialized into the private runtime descriptor consumed by the native helper.

Summary

Types

t()

Native IPC endpoint identity.

Functions

Returns the JSON descriptor fields, excluding the server-only effective UID.

Builds a complete endpoint identity from validated values.

Types

t()

@type t() :: %MingaEditor.NativeIPC.Identity{
  app_instance_id: String.t(),
  app_pid: pos_integer(),
  core_instance_id: String.t(),
  euid: non_neg_integer(),
  launch_nonce: String.t() | nil,
  socket_path: String.t(),
  token: String.t()
}

Native IPC endpoint identity.

Functions

descriptor(identity, version)

@spec descriptor(t(), pos_integer()) :: map()

Returns the JSON descriptor fields, excluding the server-only effective UID.

new(attrs)

@spec new(keyword()) :: t()

Builds a complete endpoint identity from validated values.