MCPcopy Index your code
hub / github.com/coder/coder / workspaceByOwnerAndName

Function workspaceByOwnerAndName

site/src/api/queries/workspaces.ts:54–62  ·  view source on GitHub ↗
(owner: string, name: string)

Source from the content-addressed store, hash-verified

52};
53
54export const workspaceByOwnerAndName = (owner: string, name: string) => {
55 return {
56 queryKey: workspaceByOwnerAndNameKey(owner, name),
57 queryFn: () =>
58 API.getWorkspaceByOwnerAndName(owner, name, {
59 include_deleted: true,
60 }),
61 };
62};
63
64const workspaceACLKey = (workspaceId: string) => ["workspaceAcl", workspaceId];
65

Callers 5

WrapperFunction · 0.90
WorkspacePageFunction · 0.90
TaskPageFunction · 0.90
TerminalPageFunction · 0.90
WorkspaceSettingsLayoutFunction · 0.90

Calls 1

Tested by 1

WrapperFunction · 0.72