Generates PlantUML sequence diagrams from data flows.
Summary
Functions
Renders the data flows in a threat model to PlantUML sequence diagram format.
Functions
@spec to_sequence(Choreo.ThreatModel.t()) :: String.t()
Renders the data flows in a threat model to PlantUML sequence diagram format.
Examples
iex> model = Choreo.ThreatModel.new()
iex> model = Choreo.ThreatModel.add_process(model, :api)
iex> model = Choreo.ThreatModel.add_data_store(model, :db)
iex> model = Choreo.ThreatModel.data_flow(model, :api, :db, label: "save")
iex> Choreo.ThreatModel.Render.PlantUML.to_sequence(model)
"@startuml\napi -> db : save\n@enduml\n"