Docket.Graph.Node (docket v0.1.0)

Copy Markdown View Source

Editable public graph node.

This struct is part of the canonical graph document. It names implementation references, branch group metadata, config, and application metadata. It is not the runtime node representation.

Summary

Types

branch_group()

@type branch_group() :: [String.t()] | %{optional(String.t()) => term()}

implementation()

@type implementation() ::
  %{:type => :module, :module => module(), optional(:function) => atom()}
  | %{:type => atom(), optional(String.t()) => term()}
  | nil

t()

@type t() :: %Docket.Graph.Node{
  branches: %{optional(String.t()) => branch_group()},
  config: map(),
  description: String.t() | nil,
  id: String.t() | nil,
  implementation: implementation(),
  label: String.t() | nil,
  metadata: map(),
  policies: map()
}