diff --git a/README.md b/README.md index 8a699da..725b10d 100644 --- a/README.md +++ b/README.md @@ -8,18 +8,6 @@ Web server for WebDAV resources ## Architecture -```staruml -@startuml +### File streaming -actor Client -actor Pathfinder -actor Sentinel -actor Fileye - -Client -> Pathfinder -Pathfinder -> Sentinel : Check authorization -Sentinel -> Pathfinder : Return session info -Pathfinder -> Fileye : Stream content - -@enduml -``` + diff --git a/assets/stream.puml b/assets/stream.puml new file mode 100644 index 0000000..a691133 --- /dev/null +++ b/assets/stream.puml @@ -0,0 +1,16 @@ +@startuml + +Client -> Pathfinder +Pathfinder -> Sentinel : Check authorization + +Sentinel -> LoggedState : Logged +alt User Authorized + Sentinel -> Pathfinder : Authorized + Pathfinder -> Fileye : Open stream + Fileye -> Client : Resource access +else Unauthenticated + Sentinel -> Pathfinder : Unauthenticated + Pathfinder -> Client : Unauthenticated +end + +@enduml diff --git a/assets/stream.svg b/assets/stream.svg new file mode 100644 index 0000000..7a921ff --- /dev/null +++ b/assets/stream.svg @@ -0,0 +1 @@ +ClientClientPathfinderPathfinderSentinelSentinelLoggedStateLoggedStateFileyeFileyeCheck authorizationLoggedalt[User Authorized]AuthorizedOpen streamResource access[Unauthenticated]UnauthenticatedUnauthenticated \ No newline at end of file