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

Method CreateWorkspace

codersdk/organizations.go:651–653  ·  view source on GitHub ↗

CreateWorkspace creates a new workspace for the template specified. Deprecated: Use CreateUserWorkspace instead.

(ctx context.Context, _ uuid.UUID, user string, request CreateWorkspaceRequest)

Source from the content-addressed store, hash-verified

649//
650// Deprecated: Use CreateUserWorkspace instead.
651func (c *Client) CreateWorkspace(ctx context.Context, _ uuid.UUID, user string, request CreateWorkspaceRequest) (Workspace, error) {
652 return c.CreateUserWorkspace(ctx, user, request)
653}
654
655// CreateUserWorkspace creates a new workspace for the template specified.
656func (c *Client) CreateUserWorkspace(ctx context.Context, user string, request CreateWorkspaceRequest) (Workspace, error) {

Callers 9

TestWorkspaceFunction · 0.80
TestWorkspaceBuildsFunction · 0.80
TestPostWorkspaceBuildFunction · 0.80
TestCreateWorkspaceFunction · 0.80
TestTemplatesFunction · 0.80
TestStartFunction · 0.80
RunReturningWorkspaceMethod · 0.80

Calls 1

CreateUserWorkspaceMethod · 0.95

Tested by 8

TestWorkspaceFunction · 0.64
TestWorkspaceBuildsFunction · 0.64
TestPostWorkspaceBuildFunction · 0.64
TestCreateWorkspaceFunction · 0.64
TestTemplatesFunction · 0.64
TestStartFunction · 0.64