PtcRunner.Kernel.CommandSubject (PtcRunner v0.14.0)

Copy Markdown View Source

Closed provider locator used by command diagnostics.

Summary

Types

occurrence()

@type occurrence() :: %{destination: :workflow | :mission, index: 0..31} | nil

operation()

@type operation() ::
  :declaration
  | :selection
  | :local
  | :application
  | :credentials
  | :authorization
  | :connectivity
  | :acquisition
  | :execution
  | :cleanup

t()

@type t() :: %PtcRunner.Kernel.CommandSubject{
  kind: :provider,
  name: binary(),
  occurrence: occurrence(),
  operation: operation()
}

Functions

provider(name, operation, occurrence \\ nil)

@spec provider(binary(), operation(), occurrence()) ::
  {:ok, t()} | {:error, :invalid_command_subject}

to_map(subject)

@spec to_map(t()) :: map()