Skip to content

Instantly share code, notes, and snippets.

@coryb
Created August 31, 2020 22:17
Show Gist options
  • Save coryb/85ccce500c831df508224256b3041b00 to your computer and use it in GitHub Desktop.
Save coryb/85ccce500c831df508224256b3041b00 to your computer and use it in GitHub Desktop.
grpc message flow for gateway exec
@startuml
participant Client as C
participant Server as S
C -> S : NewContainerRequest
C -> S : InitMessage
S -> C : StartedMessage
group Process IO
loop
C -> S : FdMessage [Stdin]
end
loop
S -> C: FdMessage [Stdout]
end
loop
S -> C: FdMessage [Stderr]
end
loop
C -> S: ResizeMessage
end
end
S -> C: ExitMessage
group Finish Output
loop
S -> C: FdMessage [Stdout]
end
loop
S -> C: FdMessage [Stderr]
end
C -> S: FdMessage [Stdin EOF]
S -> C: FdMessage [Stdout EOF]
S -> C: FdMessage [Stderr EOF]
end
S -> C: DoneMessage
C -> S: ReleaseContainer
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment