garm/database/sql
Gabriel Adrian Samfira dd1740c189 Refactor the websocket client and add fixes
The websocket client and hub interaction has been simplified a bit.
The hub now acts only as a tee writer to the various clients that
register. Clients must register and unregister explicitly. The hub
is no longer passed in to the client.

Websocket clients now watch for password changes or jwt token expiration
times. Clients are disconnected if auth token expires or if the password
is changed.

Various aditional safety checks have been added.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-07-05 12:55:35 +00:00
..
common_test.go fix: remove unused cobra args 2024-02-22 17:20:05 +01:00
controller.go Add version to controller info response 2024-07-05 12:49:16 +00:00
controller_test.go fix: unused-parameter linter findings 2024-02-22 16:54:38 +01:00
enterprise.go Use watcher and get rid of RefreshState() 2024-06-21 13:47:48 +00:00
enterprise_test.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
github.go Add watcher for github creds and endpoints 2024-06-14 20:35:02 +00:00
github_test.go Refactor the websocket client and add fixes 2024-07-05 12:55:35 +00:00
instances.go Check if producer was registered 2024-06-19 12:40:56 +00:00
instances_test.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
jobs.go Add notifications for jobs 2024-06-19 13:44:24 +00:00
models.go Refactor the websocket client and add fixes 2024-07-05 12:55:35 +00:00
organizations.go Use watcher and get rid of RefreshState() 2024-06-21 13:47:48 +00:00
organizations_test.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
pools.go Add more tests 2024-06-19 12:27:48 +00:00
pools_test.go feat: garm pools do not force default labels 2024-05-21 11:55:12 +02:00
repositories.go Use watcher and get rid of RefreshState() 2024-06-21 13:47:48 +00:00
repositories_test.go Remove duplicate of watcher.SetWatcher 2024-06-20 17:37:11 +03:00
sql.go Refactor the websocket client and add fixes 2024-07-05 12:55:35 +00:00
users.go Refactor the websocket client and add fixes 2024-07-05 12:55:35 +00:00
users_test.go Refactor the websocket client and add fixes 2024-07-05 12:55:35 +00:00
util.go Refactor the websocket client and add fixes 2024-07-05 12:55:35 +00:00