-
Notifications
You must be signed in to change notification settings - Fork 3
/
use-case-ras=proxy.puml
78 lines (66 loc) · 1.9 KB
/
use-case-ras=proxy.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@startuml
'https://plantuml.com/sequence-diagram
participant "Клиент http" as clientH #gray
participant "Прокси RAS" as proxy
participant "Служба RAS" as ras #99FF99
clientH -> proxy: ras.api.v1.GetClustersRequest
activate clientH
proxy -> proxy: init connection
activate proxy #DarkSalmon
proxy -> ras: ras.protocol.v1.NegotiateMessage
activate ras
proxy -> ras: ras.protocol.v1.ConnectMessage
deactivate proxy #DarkSalmon
|||
proxy -> ras: ras.protocol.v1.EndpointOpen
activate proxy #DarkSalmon
activate ras #Lightblue
alt #Lightyellow Successful
ras -> proxy: ras.protocol.v1.EndpointOpenAck
else #Pink Failure
ras -> proxy: ras.protocol.v1.EndpointFailure
proxy -> clientH: HTTP CODE 505
end
deactivate proxy
|||
proxy -> ras: ras.messages.v1.AuthenticateAgentRequest
activate proxy #Lightyellow
proxy -> ras: ras.messages.v1.GetClustersRequest
alt #Lightyellow Successful
ras -> proxy: ras.messages.v1.GetClustersResponse
else #Pink Failure
ras -> proxy: ras.protocol.v1.EndpointFailure
end
|||
alt #Lightyellow Successful
proxy -> clientH: ras.api.v1.GetClustersResponse
else #Pink Failure
proxy -> clientH: CODE 505
end
deactivate proxy
deactivate clientH
|||
clientH -> proxy: ras.api.v1.GetCluster
activate clientH
proxy -> ras: ras.messages.v1.AuthenticateAgentRequest
activate proxy
proxy -> ras: ras.messages.v1.ClusterAuthenticateRequest
proxy -> ras: ras.messages.v1.GetClusterInfoRequest
alt #Lightyellow Successful
ras -> proxy: ras.messages.v1.GetClusterInfoResponse
else #Pink Failure
ras -> proxy: ras.protocol.v1.EndpointFailure
end
alt #Lightyellow Successful
proxy -> clientH: v8platform.serialize.v1.ClusterInfo
else #Pink Failure
proxy -> clientH: CODE 505
end
deactivate proxy
deactivate clientH
... Timeout ...
proxy -> ras: ras.protocol.v1.EndpointClose
deactivate ras
proxy -> ras: ras.protocol.v1.DisconnectMessage
deactivate ras
@enduml