MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / ListWorkspaces

Method ListWorkspaces

internal/store/workspaces.go:15–17  ·  view source on GitHub ↗

ListWorkspaces returns every non-deleted workspace, unordered by user. This is intended for admin-panel cross-tenant views and the pre-auth/fresh-install bootstrap. End-user workspace switchers should call GetUserWorkspaces instead, which scopes to the user's memberships.

()

Source from the content-addressed store, hash-verified

13// pre-auth/fresh-install bootstrap. End-user workspace switchers should
14// call GetUserWorkspaces instead, which scopes to the user's memberships.
15func (s *Store) ListWorkspaces() ([]models.Workspace, error) {
16 return s.ListWorkspacesQ(s.db)
17}
18
19// ListWorkspacesQ is ListWorkspaces against a caller-supplied executor, so a
20// migration's gate can read the workspace list inside the same snapshot

Callers 1

Calls 1

ListWorkspacesQMethod · 0.95

Tested by

no test coverage detected