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

Method DeleteWorkspaceACL

codersdk/workspaces.go:810–820  ·  view source on GitHub ↗
(ctx context.Context, workspaceID uuid.UUID)

Source from the content-addressed store, hash-verified

808}
809
810func (c *Client) DeleteWorkspaceACL(ctx context.Context, workspaceID uuid.UUID) error {
811 res, err := c.Request(ctx, http.MethodDelete, fmt.Sprintf("/api/v2/workspaces/%s/acl", workspaceID), nil)
812 if err != nil {
813 return err
814 }
815 defer res.Body.Close()
816 if res.StatusCode != http.StatusNoContent {
817 return ReadBodyAsError(res)
818 }
819 return nil
820}
821
822// ExternalAgentCredentials contains the credentials needed for an external agent to connect to Coder.
823type ExternalAgentCredentials struct {

Callers 3

TestDeleteWorkspaceACLFunction · 0.80
TestDeleteWorkspaceACLFunction · 0.80

Calls 3

RequestMethod · 0.95
ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65

Tested by 3

TestDeleteWorkspaceACLFunction · 0.64
TestDeleteWorkspaceACLFunction · 0.64