Last active
August 9, 2021 23:52
-
-
Save stevegt/ce7f82d96e0013ab5df0dd6616e73af5 to your computer and use it in GitHub Desktop.
journal engine flowchart using buildah as example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
digraph docker { | |
rankdir=LR; | |
io [label="I/O"]; | |
subgraph cluster_20 { | |
label=journal; | |
// open [label="open\nexisting\njournal"]; | |
notify [label="start\nprocess"]; | |
create [label="create\nnew\njournal"]; | |
update [label="update\njournal and\ncheckpoint"]; | |
done; | |
} | |
label=app; | |
gen [label="generate\nstatement"]; | |
exec [label="test and execute\nusing tests from\nold journal"]; | |
publish [label="publish\nnew\njournal"]; | |
// io -> open [label="journal.Open(from journal.From)"]; | |
// open -> io [label="oldJournal, err"]; | |
io -> notify [label="oldJournal.Process(journal.Input)"]; | |
notify -> gen [label="App.Generate(journal.Input, oldJournal, oldCheckpoint)"]; | |
gen -> create [label="statement, err"]; | |
create -> exec [label="App.Exec(oldJournal, newJournal)"]; | |
exec -> update [label="newCheckpoint, err"]; | |
update -> publish [label="App.Publish(newJournal, newCheckpoint)"]; | |
publish -> done [label="err"]; | |
done -> io [label="journal.Output, err"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment