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

Function newClient

scaletest/taskstatus/client.go:70–75  ·  view source on GitHub ↗

newClient creates a new client implementation using the provided codersdk.Client.

(coderClient *codersdk.Client)

Source from the content-addressed store, hash-verified

68
69// newClient creates a new client implementation using the provided codersdk.Client.
70func newClient(coderClient *codersdk.Client) client {
71 return &sdkClient{
72 coderClient: coderClient,
73 clock: quartz.NewReal(),
74 }
75}
76
77func (c *sdkClient) CreateUserWorkspace(ctx context.Context, userID string, req codersdk.CreateWorkspaceRequest) (codersdk.Workspace, error) {
78 return c.coderClient.CreateUserWorkspace(ctx, userID, req)

Callers 1

NewRunnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected