summaryrefslogtreecommitdiff
path: root/state.go
AgeCommit message (Collapse)Author
2022-10-04State: Rename to client to avoid confusion with the FSMjwijenbergh
2022-10-04Refactor: Renmae force TCP to prefer TCPjwijenbergh
2022-09-28State: Further document functions and typesjwijenbergh
2022-09-27Log: Add 'inherit' that sets the error level as the log leveljwijenbergh
2022-09-26Refactor: Errors into custom export types and expose typesjwijenbergh
2022-09-20State Register: Fix crash if discoServers/discoOrgs is niljwijenbergh
2022-09-20State: SetSecureLocation fix wrong error tracebackjwijenbergh
2022-09-20Module: Move to eduvpn/eduvpn-commonjwijenbergh
2022-09-20Golang-ci-lint: Fixesjwijenbergh
2022-09-16Discovery: Expose c typesjwijenbergh
2022-09-16State: Document functions and return no error on deregisterjwijenbergh
2022-09-14Refactor: Return without jsonjwijenbergh
2022-09-12Types Error: Do not panic on JSON errorjwijenbergh
2022-09-12State: Log public function errorsjwijenbergh
- Info: Something failed but it's not really an error. These errors mostly only get logged - Warning: Something failed to complete the operation, but it's not critical for the functioning. E.g. state changes (maybe a button gets pressed twice quickly, NO-OPS, e.g. disconnecting but no active server) - Error: Something failed that was needed to complete for the functioning of the app (e.g. a server is down and cannot be connected to)
2022-09-12State: Do not automatically remove servers on a config errorjwijenbergh
This is problematic as we do not want to remove already fully added servers!
2022-09-12State: More accurate back transitionsjwijenbergh
2022-09-08OAuth: Separate login functions to get rid of callbackjwijenbergh
2022-09-07Refactor: Define FSM state constants inside the public packagejwijenbergh
2022-09-07Refactor: Remove the usage of the FSM in other internal packagesjwijenbergh
This removes the FSM from being imported and thus used in other internal packages such as `oauth` or `server`. The benefit is that it becomes much easier now to reason about the FSM as it's only used in the public package. Additionally, we do not have to re-initialize the server and the oauth structure with the FSM pointer.
2022-09-06State: Do not append 'see the log file' in location errorjwijenbergh
2022-09-06State: Log fatal discovery errors if the app will fail to workjwijenbergh
2022-09-06State + FSM + Python: Rename the HAS_CONFIG state to DISCONNECTEDjwijenbergh
2022-09-06State: ShouldRenewButton is possible in more statesjwijenbergh
2022-09-06State: Remove servers on adding errorjwijenbergh
2022-09-06State: Properly handle setting secure location errorjwijenbergh
2022-09-06State + Discovery: Save the discovery data in the config JSONjwijenbergh
2022-08-24State + Server + Exports: Implement removing a serverjwijenbergh
2022-08-23Formatting: Run golinesjwijenbergh
2022-08-22State + Exports: Make cleanup optional when entering disconnectjwijenbergh
2022-08-22State: Initialize FSM in renew and disconnectjwijenbergh
2022-08-19State + FSM: Properly handle the disconnect flowjwijenbergh
- /disconnect is now called - A new state is added (DISCONNECTING) that waits for the disconnect to complete - A helper function is exposed (InFSMState) that can be used by clients to see in which state they are in
2022-08-19State: Expose serverinfo typejwijenbergh
2022-08-16Refactor: Use an interface for the data in the FSM callbackjwijenbergh
2022-08-15Refactor: Use constants for state callbacks instead of stringsjwijenbergh
2022-08-10State + Util: Create a valid URL by ensuring a scheme is presentjwijenbergh
2022-08-10State + Python: Implement renewing a sessionjwijenbergh
2022-08-09Formatting: Run gofumptjwijenbergh
2022-07-22State + Exports: Implement should show renew button booleanjwijenbergh
2022-07-22State + FSM + Exports: Implement changing a secure internet locationjwijenbergh
2022-07-20Refactor: Do not log in internal packagesjwijenbergh
The reason behind this is that we then do not have to pass a lot to each function. Logging inside internal packages is less useful as we want to let them return errors and only log in the 'public' facing API or let the client decide
2022-07-19State: Allow setting a profile regardless of the FSM statejwijenbergh
2022-07-19Server: Give JSON for the configured servers used in the main screenjwijenbergh
2022-07-19Server: Split CustomServer and split types into multiple filesjwijenbergh
2022-07-18State: Save the state after retrieving a successful connect configjwijenbergh
2022-07-18All: Run Gofumpt formatterjwijenbergh
2022-07-18Server + State + Types: Return marshalled JSON for display informationjwijenbergh
2022-07-15State + Python: Remove Set/Get Identifierjwijenbergh
Let clients serialize data to a file themselves
2022-07-15FSM + State + Python: Add a connecting state and improve back transitionsjwijenbergh
2022-07-12State + Server: Ensure the current secure location is re-initializedjwijenbergh
2022-07-12State + FSM: Implement a loading server statejwijenbergh