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

Method PatchAppStatus

codersdk/agentsdk/agentsdk.go:661–671  ·  view source on GitHub ↗

PatchAppStatus updates the status of a workspace app. Deprecated: use the DRPCAgentClient.UpdateAppStatus instead

(ctx context.Context, req PatchAppStatus)

Source from the content-addressed store, hash-verified

659// PatchAppStatus updates the status of a workspace app.
660// Deprecated: use the DRPCAgentClient.UpdateAppStatus instead
661func (c *Client) PatchAppStatus(ctx context.Context, req PatchAppStatus) error {
662 res, err := c.SDK.Request(ctx, http.MethodPatch, "/api/v2/workspaceagents/me/app-status", req)
663 if err != nil {
664 return err
665 }
666 defer res.Body.Close()
667 if res.StatusCode != http.StatusOK {
668 return codersdk.ReadBodyAsError(res)
669 }
670 return nil
671}
672
673type PostLogSourceRequest struct {
674 // ID is a unique identifier for the log source.

Callers 8

TestTasksNotificationFunction · 0.80
TestToolsFunction · 0.80
Test_TasksFunction · 0.80
setupCLITaskTestFunction · 0.80
Test_TaskSendFunction · 0.80

Calls 3

ReadBodyAsErrorFunction · 0.92
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 8

TestTasksNotificationFunction · 0.64
TestToolsFunction · 0.64
Test_TasksFunction · 0.64
setupCLITaskTestFunction · 0.64
Test_TaskSendFunction · 0.64