blob: 6f4ea2421afae32f520c146015fe04800970856b (
plain)
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
|
graph TD
style Deregistered fill:cyan
Deregistered(Deregistered) -->|Register| Main
style Main fill:white
Main(Main) -->|Deregister| Deregistered
style Main fill:white
Main(Main) -->|Add a server| AddingServer
style Main fill:white
Main(Main) -->|Get a VPN config| GettingConfig
style Main fill:white
Main(Main) -->|Already connected| Connected
style AddingServer fill:white
AddingServer(AddingServer) -->|Authorize| OAuthStarted
style OAuthStarted fill:white
OAuthStarted(OAuthStarted) -->|Authorized| Main
style GettingConfig fill:white
GettingConfig(GettingConfig) -->|Invalid location| AskLocation
style GettingConfig fill:white
GettingConfig(GettingConfig) -->|Invalid or no profile| AskProfile
style GettingConfig fill:white
GettingConfig(GettingConfig) -->|Successfully got a configuration| GotConfig
style GettingConfig fill:white
GettingConfig(GettingConfig) -->|Authorize| OAuthStarted
style AskLocation fill:white
AskLocation(AskLocation) -->|Location chosen| GettingConfig
style AskProfile fill:white
AskProfile(AskProfile) -->|Profile chosen| GettingConfig
style GotConfig fill:white
GotConfig(GotConfig) -->|Get a VPN config again| GettingConfig
style GotConfig fill:white
GotConfig(GotConfig) -->|VPN is connecting| Connecting
style Connecting fill:white
Connecting(Connecting) -->|VPN is connected| Connected
style Connecting fill:white
Connecting(Connecting) -->|Cancel connecting| Disconnecting
style Connected fill:white
Connected(Connected) -->|VPN is disconnecting| Disconnecting
style Disconnecting fill:white
Disconnecting(Disconnecting) -->|VPN is disconnected| Disconnected
style Disconnecting fill:white
Disconnecting(Disconnecting) -->|Cancel disconnecting| Connected
style Disconnected fill:white
Disconnected(Disconnected) -->|Connect again| GettingConfig
style Disconnected fill:white
Disconnected(Disconnected) -->|Renew| OAuthStarted
|